1$(document).ready(function() { 2 3 $('.main-navigation ul.menu>li').each(function() { 4 $(this).hover(function() { 5 $(this).addClass('menu-hover'); 6 }, 7 function() { 8 $(this).removeClass('menu-hover'); 9 }); 10 }); 11 12 $('.row.even-height').each(function() { 13 $(this).find('.even-item').matchHeight(); 14 }); 15 16 if ($('.fileList').length > 0) { 17 var fileList = new FileListView({ 18 el: $(this), 19 fileListContentEl: $('.fileList .file-list-content')[0] 20 }); 21 } 22 23 var imgLinks = $('.entry-content a').filter(function() { 24 return $(this).attr('href').match(/konurogstjornmal.is(.)*(.jpg|.png|.gif|.jpeg)/); 25 }); 26 if (imgLinks.length > 0) { 27 imgLinks.each(function() { 28 $(this).click(function(event) { 29 event.preventDefault(); 30 console.log($(this).attr('href')); 31 32 $('#overlay-container').html('<div class="modal-overlay"><div class="overlay"></div><img class="overlay-image" src="'+$(this).attr('href')+'"></div>'); 33 setTimeout(function() { 34 $('#overlay-container').addClass('visible'); 35 }, 50); 36 37 $('#overlay-container').click(function() { 38 $('#overlay-container').removeClass('visible'); 39 setTimeout(function() { 40 $('#overlay-container').html(''); 41 }, 400); 42 }); 43 }); 44 }); 45 } 46 47 $('#menuToggle').click(function() { 48 $('#site-navigation>div>ul.menu').toggleClass('menu-open'); 49 }); 50 51 $('.site-main article.post .entry-content a').each(function() { 52 if (($(this).attr('href').indexOf('/atburdir/') > -1) && ($(this).attr('href').indexOf('/#atburdur/') == -1)) { 53 var newLink = $(this).attr('href').replace('/atburdir/', '/atburdir/#atburdur/'); 54 if (newLink.substr(-1) == '/') { 55 newLink = newLink.substring(0, newLink.length - 1); 56 } 57 58 $(this).attr('href', newLink); 59 60 if ($(this).attr('target') == '_blank') { 61 $(this).attr('target', ''); 62 } 63 } 64 if ($(this).attr('href').indexOf('http://www.konurogstjornmal.is/') > -1) { 65 if ($(this).attr('target') == '_blank') { 66 $(this).attr('target', ''); 67 } 68 } 69 }); 70 71});
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.