1$(document).ready(function () { 2 $('.advert').carousel({ 3 interval: 4000 4 }); 5 6 $('.image-fade').hover(function () { 7 $(this).stop().fadeTo("medium", 0.45); 8 }, function () { 9 $(this).stop().fadeTo("medium", 1); 10 }); 11 12 $('.feedback input[type="image"]').on('click', function () { 13 $('#FeedbackTypeId').val($(this).data('feedback')); 14 }); 15 16 $('.number').numeric(); 17 18 $('.panel-collapse').on('show.bs.collapse', function () { 19 $(this).siblings('.panel-heading').addClass('active'); 20 }); 21 22 $('.panel-collapse').on('hide.bs.collapse', function () { 23 $(this).siblings('.panel-heading').removeClass('active'); 24 }); 25 26 $("#main-content table").responsiveTable(); 27 28}); 29 30$(document).on("click", ".alert .cookie", function () { 31 var id = $(this).parents('.' + $(this).data('dismiss')).data('id'); 32 if (id) { 33 $.cookie('alert-' + id, '', { expires: 365, path: '/' }); 34 } 35}); 36 37 38 39$(function () { 40 $('#WebsiteAreaId').change(function () { 41 var url = '/umbraco/surface/GalleryRequestSurface/GetSectionsByArea'; 42 $.getJSON(url, { areaId: $('#WebsiteAreaId').val() }, function (data) { 43 var items = '<option>Select Website Section</option>'; 44 $.each(data, function (i, section) { 45 items += "<option value='" + section.Value + "'>" + section.Text + "</option>"; 46 }); 47 $('#WebsiteSectionId').html(items); 48 }); 49 }); 50}); 51 52$(function () { 53 $("#SignIn").click(function () { 54 $.ajax({
55 type: "POST", 56 url: "/umbraco/surface/VisitorSurface/UpdateDateSignIn", 57 contentType: "application/json; charset=utf-8", 58 dataType: "json", 59 success: function (response) { 60 $("#SignInTime").val(response); 61 }, 62 error: function (response) { 63 console.log(response.responseText); 64 } 65 }); 66 }); 67}); 68 69$(function () { 70 $("#SignOut").click(function () { 71 $.ajax({ 72 type: "POST", 73 url: "/umbraco/surface/VisitorSurface/UpdateDateSignOut", 74 contentType: "application/json; charset=utf-8", 75 dataType: "json", 76 success: function (response) { 77 $("#SignOutTime").val(response); 78 }, 79 error: function (response) { 80 console.log(response.responseText); 81 } 82 }); 83 }); 84}); 85 86(function (n) { 87 n.fn.responsiveTable = function (t) { 88 var u = this, 89 r = n.extend({}, { class: "table-responsive" }, t); 90 return u.each(function () { 91 for ( 92 $table = n(this), 93 $table.parent(r.class).length || $table.wrap('<div class="' + r.class + '" />'), 94 thead = $table.find("thead"), 95 tbody = $table.find("tbody"), 96 theadRows = thead.find("tr"), 97 theadRows.length === 0 && 98 ((thead = n("<thead />")), (theadRows = tbody.find("tr:first")), thead.append(theadRows), $table.prepend(thead), theadRows.find("td").wrapInner("<div />").find("div").unwrap().wrap('<th scope="col"></th>')), 99 tbodyRows = tbody.find("tr"), 100 theadCells = n(theadRows[0]).find("th"), 101 i = 0; 102 i < tbodyRows.length; 103 i++ 104 ) 105 for ($row = n(tbodyRows[i]), cells = $row.find("td"), j = 0; j < cells.length; j++) n(cells[j]).wrapInner('<span class="cellWrap"/>'), n(cells[j]).attr("data-label", n(theadCells[j]).text()); 106 }); 107 }; 108})(jQuery);
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.