Vorlage:FlogrThumbs: Unterschied zwischen den Versionen
Aus RTW
Wiese (Diskussion | Beiträge) (amp) |
Wiese (Diskussion | Beiträge) (loading) |
||
Zeile 3: | Zeile 3: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
jQuery(document).ready(function() { | jQuery(document).ready(function() { | ||
+ | jQuery('#flogrthumb_container').addClass('initialized loading'); | ||
var amp = String.fromCharCode(38); | var amp = String.fromCharCode(38); | ||
var url = 'http://rtw.cto3.com/extensions/flogr/index.php?type=sets'+amp+'setId=</html>{{{1}}}<html>'; | var url = 'http://rtw.cto3.com/extensions/flogr/index.php?type=sets'+amp+'setId=</html>{{{1}}}<html>'; | ||
jQuery.get(url, function(data) { | jQuery.get(url, function(data) { | ||
var res = data.match(/.*<div id=['"]thumbnail_container['"]>([\s\S]+?)<\/div>.*/ig); | var res = data.match(/.*<div id=['"]thumbnail_container['"]>([\s\S]+?)<\/div>.*/ig); | ||
− | jQuery('#flogrthumb_container').html(res[0]); | + | jQuery('#flogrthumb_container').removeClass('loading').html(res[0]); |
}); | }); | ||
}); | }); | ||
</script> | </script> | ||
</html> | </html> |
Version vom 21. August 2011, 21:03 Uhr