Changeset 29250

Show
Ignore:
Timestamp:
01/30/09 00:25:53 (4 years ago)
Author:
NeoCat
Message:

設定UI調整

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • websites/twicli/twicli.html

    r29248 r29250  
    737737        switchTo("misc"); 
    738738        $("tw2h").innerHTML = '<p><a target="twitter" href="index.html"><b>twicli</b></a> : browser-base Twitter client</p><hr>' + 
    739                                         '<p><form onSubmit="switchUser($(\'user_id\').value); return false;">show user info : @<input type="text" size="15" id="user_id" value="' + myname + '"><input type="image" src="go.png"></form></p><hr>' + 
    740                                         '<p><a href="javascript:togglePreps()">▼<b>Preferences</b></a><form id="preps" onSubmit="setPreps(this.limit.value, this.maxc.value, this.maxu.value, this.interval.value, this.since_check.checked, this.counter.checked, this.list.value, this.user_style.value); return false;" style="display: none;">max #msgs in TL: <input name="limit" size="5" value="' + nr_limit + '"><br>#msgs in TL on update (max=200): <input name="maxc" size="3" value="' + max_count + '"><br>#msgs in user on update (max=200): <input name="maxu" size="3" value="' + max_count_u + '"><br>update interval: <input name="interval" size="3" value="' + updateInterval + '"> sec<br>since_id check: <input type="checkbox" name="since_check"' + (no_since_id?"":" checked") + '><br>POST length counter: <input type="checkbox" name="counter"' + (no_counter?"":" checked") + '><br>Plugins:<br><textarea cols="30" rows="4" name="list">' + pluginstr + '</textarea><br>user stylesheet:<br><textarea cols="30" rows="4" name="user_style">' + user_style + '</textarea><br><input type="submit" value="Save"></form></p><hr>'; 
     739                                        '<p><form onSubmit="switchUser($(\'user_id\').value); return false;">'+ 
     740                                        'show user info : @<input type="text" size="15" id="user_id" value="' + myname + '"><input type="image" src="go.png"></form></p><hr>' + 
     741                                        '<p><a href="javascript:togglePreps()">▼<b>Preferences</b></a>' + 
     742                                        '<form id="preps" onSubmit="setPreps(this.limit.value, this.maxc.value, this.maxu.value, this.interval.value, this.since_check.checked, this.counter.checked, this.list.value, this.user_style.value); return false;" style="display: none;">' + 
     743                                        'max #msgs in TL: <input name="limit" size="5" value="' + nr_limit + '"><br>' + 
     744                                        '#msgs in TL on update (max=200): <input name="maxc" size="3" value="' + max_count + '"><br>' + 
     745                                        '#msgs in user on update (max=200): <input name="maxu" size="3" value="' + max_count_u + '"><br>' + 
     746                                        'update interval: <input name="interval" size="3" value="' + updateInterval + '"> sec<br>' + 
     747                                        '<input type="checkbox" name="since_check"' + (no_since_id?"":" checked") + '>since_id check<br>' + 
     748                                        '<input type="checkbox" name="counter"' + (no_counter?"":" checked") + '>POST length counter<br>' + 
     749                                        'Plugins:<br><textarea cols="30" rows="4" name="list">' + pluginstr + '</textarea><br>' + 
     750                                        'user stylesheet:<br><textarea cols="30" rows="4" name="user_style">' + user_style + '</textarea><br>' + 
     751                                        '<input type="submit" value="Save"></form></p><hr>'; 
    741752        callPlugins("miscTab", $("tw2h")); 
    742753        $("loading").style.display = "block"; 
     
    750761        no_since_id = !since_check; 
    751762        no_counter = !counter; 
     763        updateInterval = interval; 
     764        resetUpdateTimer(); 
    752765        writeCookie('ver', 4, 3652); 
    753766        writeCookie('limit', limit, 3652); 
     
    760773        writeCookie('user_style', style, 3652); 
    761774        alert("Saved in Cookie. Please reload."); 
    762         updateInterval=interval; 
    763         resetUpdateTimer(); 
    764775} 
    765776// 初期化