summaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorflorian <florian@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2011-06-24 13:00:58 +0000
committerflorian <florian@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2011-06-24 13:00:58 +0000
commit8bbef6a206f4bc891715a205cb3672dbdceed982 (patch)
treef5f9e9fc0f1a8a3fe081c1ffc25aaff9b841e2d2 /www
parente9390e43396a1d8972c219ae55de7507cdb39712 (diff)
forum schneller
git-svn-id: https://svn.neo-layout.org@2397 b9310e46-f624-0410-8ea1-cfbb3a30dc96
Diffstat (limited to 'www')
-rw-r--r--www/forum/index.html28
1 files changed, 21 insertions, 7 deletions
diff --git a/www/forum/index.html b/www/forum/index.html
index 3724de9..b2c6157 100644
--- a/www/forum/index.html
+++ b/www/forum/index.html
@@ -16,17 +16,31 @@
html {height:100%;margin:0;padding:0;}
body {height:100%;margin:0;padding:0;}
-#forum {display:none;border:none; outline:1px solid grey; padding:0;margin:0.5% 0.5% 0 0.5%;}
+#forum {border:none; outline:1px solid grey; padding:0;margin:0.5% 0.5% 0 0.5%;}
iframe {margin:0;padding:0;border:none;}
</style>
<script type="text/javascript">
- window.onload=setTimeout(doWhatIWant, 10000);
+ var lookAlive = 0
+ window.onload=setTimeout(setMeUp, 250);
+
+ function setMeUp(){
+ document.getElementById('forum').setAttribute('onload', 'iframeLoaded()');
+ document.getElementById('forum').setAttribute('src','http://gmane.org/language.php?set_language=ger&from=');
+ }
+ function iframeLoaded(){
+ if (lookAlive == 0)
+ document.getElementById('forum').setAttribute('src','http://blog.gmane.org/gmane.comp.hardware.keyboards.layout.neo/?set_lines=100000');
+ else if (lookAlive == 1)
+ document.getElementById('forum').setAttribute('src','http://blog.gmane.org/gmane.comp.hardware.keyboards.layout.neo?set_blog_all=no');
+ else if (lookAlive == 2)
+ doWhatIWant();
+ lookAlive++;
+ }
function doWhatIWant(){
- if (document.styleSheets[0].cssRules)
- document.styleSheets[0].insertRule('.settings{display:none;}',0);
- else if (document.styleSheets[0].rules)
- document.styleSheets[0].addRule('.settings','display:none');
- document.getElementById('forum').style.display="block";
+ if (document.styleSheets[0].cssRules)
+ document.styleSheets[0].insertRule('.settings{display:none;}',0);
+ else if (document.styleSheets[0].rules)
+ document.styleSheets[0].addRule('.settings','display:none');
document.getElementById('forum').setAttribute('src','http://blog.gmane.org/gmane.comp.hardware.keyboards.layout.neo/?set_user_css=http%3A%2F%2Fneo-layout.org%2Fforum%2Fgmane.css&do_set_user_css=t');
document.getElementById('forum').setAttribute('width','99%');
document.getElementById('forum').setAttribute('height','98%');