1$(document).ready(function() { 2 $('div.expandable').expander(); 3 4 // override some default options 5 $('div.expandable').expander({ 6 slicePoint: 80, // default is 100 7 expandText: '...More', // default is 'read more...' 8 collapseTimer: 0, // re-collapses after 5 seconds; default is 0, so no re-collapsing 9 userCollapseText: '[less]' // default is '[collapse expanded text]' 10 }); 11 12}); 13 14 15function getMostViewed(order,id) 16{ 17 if(order == "views") 18 createCookie("homevideoboxSettings","mostviewed","100"); 19 else 20 createCookie("homevideoboxSettings","allvideo","100"); 21 22 document.getElementById("txt_order").value= order; 23 document.getElementById("mostviewed").innerHTML = "Please wait... <img src='images/loader.gif' alt='Loading' />"; 24 $.get("https://www.opalesque.tv/includes/getAjax.php", {pageId: "MostViewedhomepagevideo",order: order,id:id}, 25 function(data){ 26 document.getElementById("mostviewed").innerHTML = data; 27 }); 28} 29 30function getcategoryVideo(id,vid) 31{ 32 document.getElementById("Tagvideos").innerHTML = "Please wait...<img src='https://www.opalesque.tv/images/ajax-loader(1).gif' alt='Opalesque TV' />"; 33 34 var part = document.getElementById("videopart").value; 35 $.get("https://www.opalesque.tv/includes/getAjax.php", {pageId: "TagVideo",id:id,vid:vid,part:part}, 36 function(data){ 37 document.getElementById("Tagvideos").innerHTML = data; 38 }); 39} 40 41function getlocationVideo(videolocation,vid) 42{ 43 document.getElementById("morevideo").innerHTML = "More videos from <span>"+videolocation+"</span>"; 44 document.getElementById("Tagvideos").innerHTML = "Please wait...<img src='https://www.opalesque.tv/images/ajax-loader(1).gif' alt='Opalesque TV' />"; 45 $.get("https://www.opalesque.tv/includes/getAjax.php", {pageId: "LocationVideo",videolocation:videolocation,vid:vid}, 46 function(data){ 47 document.getElementById("Tagvideos").innerHTML = data; 48 }); 49} 50 51function createCookie(name,value,days) { 52 if (days) { 53 var date = new Date(); 54 date.setTime(date.getTime()+(days*24*60*60*1000)); 55 var expires = "; expires="+date.toGMTString(); 56 } 57 else var expires = ""; 58 document.cookie = name+"="+value+expires+"; path=/"; 59} 60 61 function getnewsData1(page) { 62 var vid = document.getElementById("vid").value; 63 if (document.getElementById("newsLoading")) 64 document.getElementById("newsLoading").innerHTML = "<img src='images/newsloader.gif' border='0' alt='loading' />"; 65 66 $.get("https://www.opalesque.tv/news1.php", { page: page, vid: vid}, 67 function(data){ 68 //alert("Data Loaded: " + data); 69 document.getElementById("newsTable1").innerHTML = data; 70 }); 71} 72 73//get related news by default onload of video page 74getnewsData1(1); 75 76 77 78 79 80 function addEmail() { 81 var email = document.getElementById("emailId").value; 82 if (email) { 83 if(echeck(email)== false) { 84 alert("Invalid Email Id"); 85 return false; 86 } 87 } 88 document.location.href='https://www.opalesque.com/Subscribe-hedge-fund-videos.html'; 89 } 90 91 function echeck(str) { 92 var at="@" 93 var dot="." 94 var lat=str.indexOf(at) 95 var lstr=str.length 96 var ldot=str.indexOf(dot) 97 if (str.indexOf(at)==-1){ 98 return false 99 } 100 if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){ 101 return false 102 } 103 104 if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){ 105 return false 106 } 107 if (str.indexOf(at,(lat+1))!=-1){ 108 return false 109 } 110 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){ 111 return false 112 } 113 114 if (str.indexOf(dot,(lat+2))==-1){ 115 return false 116 } 117 118 if (str.indexOf(" ")!=-1){ 119 return false 120 } 121 122 return true 123 } 124 125 126 $(document).ready(function() { 127 $("#more-related").click(function () 128 { 129 if(document.getElementById("TABLE1").style.display == "block") 130 $("#more-related").html('More related videos '); 131 else 132 $("#more-related").html('Less related videos'); 133 134 $("#TABLE1").toggle("slow"); 135 136 }); 137 }); 138 139 140 $(document).ready(function() { 141 $("#videocomment,#videocommentTotal").click(function () 142 { 143 document.getElementById("comments").focus(); 144 }); 145 }); 146 147 148 149 function addComment(userId,landingUrl) { 150 if(!userId) { 151 document.getElementById("loading").innerHTML = "<table class='growlUI'><tr><td><h3 style='color:red;'>You must be logged in to post comments</h3></td></tr></table>"; 152 return false;
153 } 154 var comments= document.getElementById("comments").value; 155 if(!comments) { 156 document.getElementById("loading").innerHTML = "<table class='growlUI'><tr><td><h3 style='color:red;'>Please fill comments</h3></td></tr></table>"; 157 return false; 158 } 159 var status = 0; 160 var alert_status = 0; 161 if(document.getElementById("status").checked) 162 status = 1; 163 if(document.getElementById("alert_status").checked) 164 alert_status = 1; 165 166 var vid = document.getElementById("vid").value; 167 document.getElementById("loading").innerHTML = "Please wait... <img src='images/loader.gif' border='0' alt='Opalesque TV' />"; 168 $.get("https://www.opalesque.tv/includes/comments.php", {uid: userId, comment: comments,vid: vid,status: status,alert_status: alert_status}, 169 function(data){ 170 if(data) { 171 document.getElementById("loading").innerHTML = "<table class='growlUI'><tr><td><h3>"+data+"</td></tr></table>"; 172 document.comment.reset(); 173 document.location.href = "http://www.opalesque.tv"+landingUrl; 174 } 175 }); 176 } 177 178 179 var player = null; 180 var playlist = null; 181 function playerReady(obj) 182 { 183 player = gid(obj.id); 184 addListeners(); 185 }; 186 187 function addListeners() 188 { 189 playlist = player.getPlaylist(); 190 if(playlist.length > 0) 191 { 192 player.addModelListener('STATE', 'stateMonitor'); 193 } 194 else 195 { 196 setTimeout("addListeners();", 100); 197 } 198 }; 199 function stateMonitor(obj) 200 { 201 if(obj.newstate == 'PLAYING') 202 { 203 var hid = document.getElementById("hits_status").value; 204 if (hid != "1") { 205 var uid = document.getElementById("uid").value; 206 var vid = document.getElementById("vid").value; 207 $.get("https://www.opalesque.tv/hits.php",{act:'hits_add', uid: uid, vid: vid }, function(data){ 208 document.getElementById("hits_id").value = data; 209 }); 210 document.getElementById("hits_status").value = "1"; 211 } 212 } 213 if(obj.newstate == 'COMPLETED') 214 { 215 //Update video status as completed in video track page 216 var hid = document.getElementById("hits_id").value; 217 if(hid > 0) 218 { 219 $.get("https://www.opalesque.tv/hits.php",{act:'hits_update', hid: hid}, function(data){ 220 //Clear the value to recount video view 221 document.getElementById("hits_status").value = ""; 222 document.getElementById("hits_id").value = ""; 223 }); 224 } 225 } 226 }; 227 228 function gid(name) 229 { 230 return document.getElementById(name); 231 }; 232 233 function ShowHideVideo() 234 { 235 document.getElementById("pageyoutube").style.display = "none"; 236 document.getElementById("page").style.display = "block"; 237 } 238 239function showDesc(id) 240{ 241 if(id== "lessDesc") 242 { 243 document.getElementById("moreDesc").style.display = "none"; 244 document.getElementById("lessDesc").style.display = "block"; 245 window.scrollTo(100,240); 246 } 247 if(id== "moreDesc") 248 { 249 document.getElementById("lessDesc").style.display = "none"; 250 document.getElementById("moreDesc").style.display = "block"; 251 252 } 253 //document.getElementById("more").style.display = "none"; 254 255 256}
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.