Difference between revisions of "MediaWiki:Gadget-site.js"

From CaiyunWiki
Jump to: navigation, search
Line 8: Line 8:
  
 
var tianqi = "<link href='https://fonts.googleapis.com/css?family=Roboto:400,300' rel='stylesheet' type='text/css'><div class='card'><span class='city'>Beijing</span><br><div class='sun'></div><span class='temp'>32&#176;C</span><span><ul class='variations'><li>CLEAR</li><li><span class='speed'>9<span class='mph'>mph</span></span></li></ul></span><div class='forecast clear'><div class='day tue'>TUE<br> <span class='cloudy'></span> <br> <span class='highTemp'>79&#176;</span> <br> <span class='lowTemp'>57&#176;</span></div><div class='day wed'>WED<br> <span class='sunny'></span> <br> <span class='highTemp'>79&#176;</span> <br> <span class='lowTemp'>57&#176;</span></div><div class='day thu'>THU<br> <span class='sunny'></span> <br> <span class='highTemp'>79&#176;</span> <br> <span class='lowTemp'>57&#176;</span></div><div class='day fri'>FRI<br> <span class='cloudy'></span> <br> <span class='highTemp'>79&#176;</span> <br> <span class='lowTemp'>57&#176;</span></div></div></div>";
 
var tianqi = "<link href='https://fonts.googleapis.com/css?family=Roboto:400,300' rel='stylesheet' type='text/css'><div class='card'><span class='city'>Beijing</span><br><div class='sun'></div><span class='temp'>32&#176;C</span><span><ul class='variations'><li>CLEAR</li><li><span class='speed'>9<span class='mph'>mph</span></span></li></ul></span><div class='forecast clear'><div class='day tue'>TUE<br> <span class='cloudy'></span> <br> <span class='highTemp'>79&#176;</span> <br> <span class='lowTemp'>57&#176;</span></div><div class='day wed'>WED<br> <span class='sunny'></span> <br> <span class='highTemp'>79&#176;</span> <br> <span class='lowTemp'>57&#176;</span></div><div class='day thu'>THU<br> <span class='sunny'></span> <br> <span class='highTemp'>79&#176;</span> <br> <span class='lowTemp'>57&#176;</span></div><div class='day fri'>FRI<br> <span class='cloudy'></span> <br> <span class='highTemp'>79&#176;</span> <br> <span class='lowTemp'>57&#176;</span></div></div></div>";
 +
 +
$('.tianqi').html(tianqi);

Revision as of 01:32, 30 August 2018

//  _________________________________________________________________________________________
// |                                                                                         |
// |                    === WARNING: GLOBAL GADGET FILE ===                                  |
// |                  Changes to this page affect many users.                                |
// | Please discuss changes on the talk page or on [[Wikipedia_talk:Gadget]] before editing. |
// |_________________________________________________________________________________________|
//

var tianqi = "<link href='https://fonts.googleapis.com/css?family=Roboto:400,300' rel='stylesheet' type='text/css'><div class='card'><span class='city'>Beijing</span><br><div class='sun'></div><span class='temp'>32&#176;C</span><span><ul class='variations'><li>CLEAR</li><li><span class='speed'>9<span class='mph'>mph</span></span></li></ul></span><div class='forecast clear'><div class='day tue'>TUE<br> <span class='cloudy'></span> <br> <span class='highTemp'>79&#176;</span> <br> <span class='lowTemp'>57&#176;</span></div><div class='day wed'>WED<br> <span class='sunny'></span> <br> <span class='highTemp'>79&#176;</span> <br> <span class='lowTemp'>57&#176;</span></div><div class='day thu'>THU<br> <span class='sunny'></span> <br> <span class='highTemp'>79&#176;</span> <br> <span class='lowTemp'>57&#176;</span></div><div class='day fri'>FRI<br> <span class='cloudy'></span> <br> <span class='highTemp'>79&#176;</span> <br> <span class='lowTemp'>57&#176;</span></div></div></div>";

$('.tianqi').html(tianqi);