PageSourceSearch

https://www.talkingrugbyunion.co.uk/assets/js/site.js

js talkingrugbyunion.co.uk collected 2026-10-02 11:53:56 UTC 2,711 bytes, 108 lines download raw bytes

1//Page 'document ready function'
2$(document).ready(function () {
3
4 
5	//Nav Init
6//	$("#cssmenu").menumaker({
7//		title: "Main Menu",
8//		format: "multitoggle",
9//		breakpoint: 1024,
10//	});
11
12	//Responsive Tabs
13	fakewaffle.responsiveTabs(['phone', 'tablet']);
14
15
16	//Clickable Divs
17	$(".link").click(function (event) {
18
19		vurl = $(this).find("a").attr("href");
20		vtarget = $(this).find("a").attr("target");
21		event.preventDefault();
22		event.stopPropagation();
23		window.open(vurl, '_self');
24
25
26	}).on('click', '.disquss_count', function (e) {
27		// clicked on descendant div
28		e.stopPropagation();
29	});
30
31
32	$(".enlarge").fancybox({
33		prevEffect: "none",
34		nextEffect: "none",
35		padding: 8,
36
37	})
38
39});
40
41/*
42 * SlyTube (c)2013
43 * Open source under the BSD License.
44 *
45 * Copyright © 2013 e2z
46 */
47jQuery(function ($) {
48
49	$.fn.slytube = function (options) {
50
51		// Create some defaults, extending them with any options that were provided
52		var settings = $.extend({
53			feedURL: '3581E91B5CBB0C0E',
54			videoframe: '.video_holder',
55			maxresults: '24'
56		}, options);
57
58
59
60		//Get id from element
61		var element = '#' + ($(this)
62			.attr('id'));
63
64
65
66		function loadVideo(el, autoplay) {
67			var vid_id = $(el).attr('data-video-id'),
68				vid_url = 'http://www.youtube.com/embed/' + vid_id + '?autoplay=' + autoplay + '&wmode=transparent&origin=http://www.cricketworld.com/';
69			$(".video_thumb").removeClass('active');
70			$(el).addClass('active');
71			$(settings.videoframe).attr('src', vid_url);
72			//alert(vid_url);
73		}
74
75		return this.each(function () {
76
77			$(element).on('click', '.video_thumb', function () {
78				loadVideo($(this), 1);
79			});
80
81
82
83			var playListURL = 'http://gdata.youtube.com/feeds/api/playlists/' + settings.feedURL + '?v=2&max-results=' + settings.maxresults + '&alt=json&callback=?';
84			$.getJSON(playListURL, function (data) {
85				var list_data = "";
86				$.each(data.feed.entry, function (i, item) {
87					var feedTitle = item.title.$t;
88					var feedURL = item.link[1].href;
89					var fragments = feedURL.split("/");
90					var videoID = fragments[fragments.length - 2];
91					var thumb = "http://img.youtube.com/vi/" + videoID + "/hqdefault.jpg";
92					list_data += '<div class="element_videothumb" data-video-id="' + videoID + '"><a class="video_thumb" data-video-id="' + videoID + '" title="' + feedTitle + '"><div class="clip"><div class="iconoverlay_slytube_video"></div><img class="img" alt="' + feedTitle + '" src="' + thumb + '"></div>' + feedTitle + '</a></div>';
93
94
95				});
96				$(list_data).appendTo(element);
97				loadVideo($(element + " .element_videothumb:eq(0) a"), 0);
98			});
99
100
101		});
102
103
104	};
105
106
107
108});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.