Богоугодные коментарии в JavaScript

Feb 14, 2013 01:38

//To Track Thy Youtube Upon Google Analytics
//Regardless the number of Players upon thy stage
//Performed by LunaMetrics http://www.lunametrics.com @lunametrics
//and Sayf Sharif @sayfsharif
//Who beg thy forgiveness for the lack of the regular expression
//Forget thou not to subscribeth to our bloge: http://www.lunametrics.com/blog/
//CURTAIN
//
//Forsooth here doth we instantiate thy youtube player api
//as it was written by the Google
var tag = document.createElement('script');
tag.src = "//www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
//Then as a drop of rain we create two heavenly arrays
//who may hold in thy endless bossom our value
var videoArray = new Array();
var playerArray = new Array();
//twixt the jquery we fly to watch as the eagle does the mouse
//for the wanderous devil known as the iframe

(function($) {
function trackYouTube()
{
//What am i, but nothing?
var i = 0;
//Harken to the iframes of the page
//thy loathesome demon gallavanting upon
//our innocent sweet html
jQuery('iframe').each(function() {

тут подсмотретл:http://malaya-zemlya.livejournal.com/727752.html
Previous post Next post
Up