|
|
@@ -74,6 +74,18 @@ $(function () { |
|
|
|
$('.dropdown input, .dropdown label').click(function (e) { |
|
|
|
e.stopPropagation(); |
|
|
|
}); |
|
|
|
|
|
|
|
// for bootstrap 3 use 'shown.bs.tab', for bootstrap 2 use 'shown' in the next line |
|
|
|
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { |
|
|
|
// save the latest tab; use cookies if you like 'em better: |
|
|
|
localStorage.setItem('lastTab', $(this).attr('href')); |
|
|
|
}); |
|
|
|
|
|
|
|
// go to the latest tab, if it exists: |
|
|
|
var lastTab = localStorage.getItem('lastTab'); |
|
|
|
if (lastTab) { |
|
|
|
$('[href="' + lastTab + '"]').tab('show'); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
function removeAmp(code) { |
|
|
@@ -113,6 +125,13 @@ function SelectAll(id) { |
|
|
|
document.getElementById(id).select(); |
|
|
|
} |
|
|
|
|
|
|
|
function getAnchor() { |
|
|
|
var currentUrl = document.URL, |
|
|
|
urlParts = currentUrl.split('#'); |
|
|
|
|
|
|
|
return (urlParts.length > 1) ? urlParts[1] : null; |
|
|
|
} |
|
|
|
|
|
|
|
/***************************** TIMER Page Load *******************************/ |
|
|
|
var loopTime; |
|
|
|
var startTime = new Date(); |