사용자:Itsurea/common.js: 두 판 사이의 차이

편집 요약 없음
편집 요약 없음
2번째 줄: 2번째 줄:
   loadCSS = function(href) {
   loadCSS = function(href) {
     var cssLink = $("<link rel='stylesheet' type='text/css' href='"+href+"'>");
     var cssLink = $("<link rel='stylesheet' type='text/css' href='"+href+"'>");
    alert(href);
     $("head").append(cssLink);  
     $("head").append(cssLink);  
  };
  };
   
   
  // load the css file  
  // load the css file  
  loadCSS("darklibre.css");
  loadCSS("//librewiki.net/skins/Libre/darklibre.css");


});
});

2015년 5월 30일 (토) 04:05 판

jQuery(document).ready(function($){
  loadCSS = function(href) {
     var cssLink = $("<link rel='stylesheet' type='text/css' href='"+href+"'>");
     $("head").append(cssLink); 
 };
 
 // load the css file 
 loadCSS("//librewiki.net/skins/Libre/darklibre.css");

});