- Timestamp:
- Sep 1, 2010, 4:12:03 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
shared/js/tools.js
r176 r181 55 55 // content for the license tags (depending on language) 56 56 text : { 57 de: '© technikum29. <a href="/de/impressum.shtm# Hinweise_für_die_Nutzung_von_Bildern_aus_der_Website_des__technikum29">Lizenzbestimmungen</a>',58 en: '© technikum29. <a href="/en/contact.shtm# Image_use_policy_and_information_about_reusing_technikum29_website_contentst">Licensing terms</a>',57 de: '© technikum29. <a href="/de/impressum.shtm#image-copyright">Lizenzbestimmungen</a>', 58 en: '© technikum29. <a href="/en/contact.shtm#image-copyright">Licensing terms</a>', 59 59 }, 60 60 … … 110 110 **/ 111 111 t29.window_size = function() { 112 var body = $("body"); // Reichenzeit sparen 112 113 $(window).resize(function(){ 113 114 var width = window.innerWidth; 114 $("body").toggleClass("lesser1024", width < 1024);115 $("body").toggleClass("greater1024", width >= 1024);116 $("body").toggleClass("greater1280", width >= 1280);115 body.toggleClass("lesser1024", width < 1024) 116 .toggleClass("greater1024", width >= 1024) 117 .toggleClass("greater1280", width >= 1280); 117 118 }).resize(); 118 119 } … … 186 187 if((hash=location.hash.substr(1)).length && (link=$("a[name="+hash+"]")).length) 187 188 //$('html, body').animate({scrollTop: link.offset().top}, 1000); // smooth scrolling 188 $('html, body').scrollTop(link. offset().top); // springen189 $('html, body').scrollTop(link.parent().offset().top); // springen 189 190 } 190 191
Note: See TracChangeset
for help on using the changeset viewer.