MediaWiki:Common.js
Aus Joachim Camerarius (1500-1574)
Hinweis: Leere nach dem Veröffentlichen den Browser-Cache, um die Änderungen sehen zu können.
- Firefox/Safari: Umschalttaste drücken und gleichzeitig Aktualisieren anklicken oder entweder Strg+F5 oder Strg+R (⌘+R auf dem Mac) drücken
- Google Chrome: Umschalttaste+Strg+R (⌘+Umschalttaste+R auf dem Mac) drücken
- Internet Explorer/Edge: Strg+F5 drücken oder Strg drücken und gleichzeitig Aktualisieren anklicken
- Opera: Strg+F5
/* Das folgende JavaScript wird für alle Benutzer geladen. */ $(document).ready(function() { $(".nav li.disabled a").click(function() { return false; }); }); function loadFrame(url){ $( "#result" ).load(url + ' #frameContent'); $( "#linkResult" ).empty().prepend('<html><head><style> a.drilldown-btn-test:link, a.drilldown-btn-test:visited { position: relative; display: block; margin: 30px auto 0; padding: 14px 15px; color: #000000; font-size:14px; font-weight: bold; text-align: center; text-decoration: none; text-transform: uppercase; overflow: hidden; letter-spacing: .08em; border-radius: 0; text-shadow: 0 0 1px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(0, 0, 0, 0.2); -webkit-transition: all 1s ease; -moz-transition: all 1s ease; -o-transition: all 1s ease; transition: all 1s ease; } a.drilldown-btn-test:link:after, a.drilldown-btn-test:visited:after { content: ""; position: absolute; height: 0%; left: 50%; top: 50%; width: 150%; z-index: -1; -webkit-transition: all 0.75s ease 0s; -moz-transition: all 0.75s ease 0s; -o-transition: all 0.75s ease 0s; transition: all 0.75s ease 0s; } a.drilldown-btn-test:link:hover, a.drilldown-btn-test:visited:hover { color: #FFF; text-shadow: none; } a.drilldown-btn-test:link:hover:after, a.drilldown-btn-test:visited:hover:after { height: 450%; } a.drilldown-btn-test:link, a.drilldown-btn-test:visited { position: relative; display: block; margin: 30px auto 0; padding: 14px 15px; color: #000000; font-size:14px; border-radius: 0; font-weight: bold; text-align: center; text-decoration: none; text-transform: uppercase; overflow: hidden; letter-spacing: .08em; text-shadow: 0 0 1px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(0, 0, 0, 0.2); -webkit-transition: all 1s ease; -moz-transition: all 1s ease; -o-transition: all 1s ease; transition: all 1s ease; } /* Victoria Buttons */ a.drilldown-btn-test.victoria-two { border: 2px solid #006B99; } a.drilldown-btn-test.victoria-two:after { background: #006B99; -moz-transform: translateX(-50%) translateY(-50%) rotate(25deg); -ms-transform: translateX(-50%) translateY(-50%) rotate(25deg); -webkit-transform: translateX(-50%) translateY(-50%) rotate(25deg); transform: translateX(-50%) translateY(-50%) rotate(25deg); } </style></head><body><div class="container"><div class="col-md-4"></div><div class="col-md-4"> <a href="/camerarius/index.php/Spezial:Daten_durchsuchen/Drucke" class="btn btn-sm drilldown-btn-test victoria-two">Seite besuchen</a></div><div class="col-md-4"></div></div></body></html>'); } /***************************************************************/ /********* Animate stat-counter on main page ******************/ /**************************************************************/ $('.counting').each(function() { var $this = $(this), countTo = $this.attr('data-count'); $({ countNum: $this.text()}).animate({ countNum: countTo }, { duration: 2000, easing:'linear', step: function() { $this.text(Math.floor(this.countNum)); }, complete: function() { $this.text(this.countNum); //alert('finished'); } }); });