1$(document).ready(function() { 2 3 var menu = ''; 4 var url = window.location.href; 5 var id = $(".fav_link").data('id'); 6 var title = $(".block_header").text(); 7 var auth = getCookie("auth"); 8 if ((auth != null) && (url.indexOf("/video/") != -1)) { 9 $.ajax({ 10 type: "POST", 11 url: "/ajax/auth.php", 12 data: {setUserView: true, id: id, title: title}, 13 success: function(videoUrl){ 14 console.log('videoUrl: ' + videoUrl); 15 var downloadVideo = '<div><a href="'+videoUrl+'" download>Get it!</a></div>'; 16 $("#vidlinks").html(downloadVideo); 17 } 18 }); 19 } 20 if ((auth == null) && (url.indexOf("/video/") != -1)) { 21 var downloadVideo = '<div><a rel="nofollow" id="show-login-popup">Get it!</a></div>'; 22 $("#vidlinks").html(downloadVideo); 23 } 24 if (auth == null) { 25 menu = '<a href="#" rel="nofollow" id="login" class="show-popup enterimg">Login</a><a href="/sign/" class="registerimg">Sign up</a>'; 26 } else { 27 auth = auth.split('_'); 28 login = auth[1]; 29 if (login != "") { 30 menu = '<a href="#" class="show-popup enterimg">Hello, '+login+'</a><a href="#" rel="nofollow" id="logout" class="show-popup enterimg">Logout</a>'; 31 } else { 32 menu = '<a href="#" rel="nofollow" id="login" class="show-popup enterimg">Login</a><a href="/sign/" class="registerimg">Sign up</a>'; 33 } 34 } 35 $("#top_menu").html(menu); 36})
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.