MediaWiki:Common.js

Frá SignWiki
Jump to navigation Jump to search

Legg til merkis: Eftir at hava goymt, mást tú fara uttanum minnið (cache) á sneytara (brovsara) tínum fyri at síggja broytingarnar.

  • Firefox / Safari: Halt Shift meðan tú klikkir á Reload, ella trýst antin Ctrl-F5 ella Ctrl-R (Command-R á einari Mac)
  • Google Chrome: Trýst Ctrl-Shift-R (⌘-Shift-R á einari Mac)
  • Internet Explorer: Halt Ctrl meðan tú trýstir á Refresh, ella trýst á Ctrl-F5
  • Opera: Reinsa cache í Tools → Preferences
/* Allt JavaScript sem sett er hér mun virka í hvert skipti sem að síða hleðst. */
   
      /**
       * Used by the EmbedMultiClick extension to load youtube into same page
       */
      function LoadVideo(player, newvideo) {
        width = $("#"+player).attr('width');
        height = $("#"+player).attr('height');
        $("#"+player).html('<param name="movie" value="http://www.youtube.com/v/'+newvideo+'?rel=0&amp;wmode=transparent&amp;autoplay=1"><param name="wmode" value="transparent"><embed src="http://www.youtube.com/v/'+newvideo+'?rel=0&amp;wmode=transparent&amp;autoplay=1" type="application/x-shockwave-flash" wmode="transparent" height="'+height+'" width="'+width+'">');
        
      }

$(document).ready(function() {
 $("#searchInput").click(function() {
  $("#searchInput").val('');
 });  


});