(function() { var puts; puts = console.log; puts('hello from coffeescript'); if (screen.width > 660) { puts('big'); tippy('[data-tippy-content]', { theme: 'custom', trigger: 'click', placement: 'bottom', arrow: true }); $(document).ready(function() { puts('document ready'); return window.navigation = $('#navigation').fullpage({ navigation: true, navigationPosition: 'right', showActiveTooltip: true, controlArrows: true, sectionsColor: ['#F0F0F0', '#FFF', '#F0F0F0'] }); }); } /* else puts 'small' instances = tippy '[data-tippy-content]', { theme: 'custom', arrow: false, trigger: 'click', placement: 'left' } do -> useSSL = document.location.protocol is 'https:' where = document.getElementsByTagName('script')[0] js = document.createElement('script') js.src = if useSSL then 'https:' else 'http:' + '//www.peopleperhour.com/hire/2119463832/3419627.js?width=1400&height=200&orientation=vertical&theme=light&rnd=' + Math.random() * 10000 try where.parentNode.insertBefore js, where catch e if typeof console isnt 'undefined' and console.log and e.stack console.log e.stack */ }).call(this);