diff --git a/index.html b/index.html index 24b98ad..0d0ab8a 100755 --- a/index.html +++ b/index.html @@ -10,8 +10,6 @@ - - @@ -27,6 +25,11 @@ + + + + + @@ -41,7 +44,7 @@
- +
@@ -160,53 +163,12 @@
- - - - - - - - - - -
-
- -
- - -
-
- - - -
-
- - - -
-
- -
-
-
- - -
- - - - - -
-
-
- - -
-
+ : +
+
+ + +
diff --git a/js/config.js b/js/config.js index f591ab1..f2bf8a4 100644 --- a/js/config.js +++ b/js/config.js @@ -26,5 +26,4 @@ var CONFIG = { * Copy the shown "App key" and paste it here below: */ DROPBOX_KEY: null // "your app key"; - } diff --git a/js/io.js b/js/io.js index ea1b4b7..c851a9b 100644 --- a/js/io.js +++ b/js/io.js @@ -1,90 +1,64 @@ SQL.IO = function(owner) { this.owner = owner; - this._name = ""; /* last used name with server load/save */ - this.lastUsedName = ""; /* last used name with local storage or dropbox load/save */ + this._storages = []; + this._currentStorage = null; + this.dom = { - container:OZ.$("io") + container: OZ.$("io"), + content: OZ.$("io-content"), + seelct: null }; - var ids = ["saveload","clientlocalsave", "clientsave", "clientlocalload", "clientlocallist","clientload", "clientsql", - "dropboxsave", "dropboxload", "dropboxlist", - "quicksave", "serversave", "serverload", - "serverlist", "serverimport"]; + this.dom.select = this.dom.container.querySelector("select"); + this.dom.ta = OZ.$("textarea"); + + var ids = ["saveload", "storage", "quicksave", "clientsql"]; for (var i=0;i= (5*1024*1024)/2) { /* this is a very big db structure... */ - alert("Warning: your database structure is above 5 megabytes in size, this is above the localStorage single key limit allowed by some browsers, example Mozilla Firefox 10"); - return; - } - - var key = this.promptName("serversaveprompt"); - if (!key) { return; } - key = "wwwsqldesigner_databases_" + (key || "default"); - - try { - localStorage.setItem(key, xml); - if (localStorage.getItem(key) != xml) { throw new Error("Content verification failed"); } - } catch (e) { - alert("Error saving database structure to localStorage! ("+e.message+")"); - } -} - -SQL.IO.prototype.clientlocalload = function() { - if (!window.localStorage) { - alert("Sorry, your browser does not seem to support localStorage."); - return; - } - - var key = this.promptName("serverloadprompt"); - key = "wwwsqldesigner_databases_" + (key || "default"); - - try { - var xml = localStorage.getItem(key); - if (!xml) { throw new Error("No data available"); } - } catch (e) { - alert("Error loading database structure from localStorage! ("+e.message+")"); - return; - } - - this.fromXMLText(xml); -} - -SQL.IO.prototype.clientlocallist = function() { - if (!window.localStorage) { - alert("Sorry, your browser does not seem to support localStorage."); - return; - } - - /* --- Define some useful vars --- */ - var baseKeysName = "wwwsqldesigner_databases_"; - var localLen = localStorage.length; - var data = ""; - var schemasFound = false; - var code = 200; - - /* --- work --- */ - try { - for (var i = 0; i< localLen; ++i) { - var key = localStorage.key(i); - if((new RegExp(baseKeysName)).test(key)) { - var result = key.substring(baseKeysName.length); - schemasFound = true; - data += result + "\n"; - } - } - if (!schemasFound) { - throw new Error("No data available"); - } - } catch (e) { - alert("Error loading database names from localStorage! ("+e.message+")"); - return; - } - this.listresponse(data, code); -} - -/* ------------------------- Dropbox start ------------------------ */ - -/** - * The following code uses this lib: https://github.com/dropbox/dropbox-js - */ -SQL.IO.prototype.dropBoxInit = function() { - if (CONFIG.DROPBOX_KEY) { - this.dropboxClient = new Dropbox.Client({ key: CONFIG.DROPBOX_KEY }); - } else { - this.dropboxClient = null; - // Hide the Dropbox buttons - var elems = document.querySelectorAll("[id^=dropbox]"); // gets all tags whose id start with "dropbox" - [].slice.call(elems).forEach( - function(elem) { elem.style.display = "none"; } - ); - } -} - -SQL.IO.prototype.showDropboxError = function(error) { - var prefix = _("Dropbox error")+": "; - var msg = error.status; - - switch (error.status) { - case Dropbox.ApiError.INVALID_TOKEN: - // If you're using dropbox.js, the only cause behind this error is that - // the user token expired. - // Get the user through the authentication flow again. - msg = _("Invalid Token (expired)"); - break; - - case Dropbox.ApiError.NOT_FOUND: - // The file or folder you tried to access is not in the user's Dropbox. - // Handling this error is specific to your application. - msg = _("File not found"); - break; - - case Dropbox.ApiError.OVER_QUOTA: - // The user is over their Dropbox quota. - // Tell them their Dropbox is full. Refreshing the page won't help. - msg = _("Dropbox is full"); - break; - - case Dropbox.ApiError.RATE_LIMITED: - // Too many API requests. Tell the user to try again later. - // Long-term, optimize your code to use fewer API calls. - break; - - case Dropbox.ApiError.NETWORK_ERROR: - // An error occurred at the XMLHttpRequest layer. - // Most likely, the user's network connection is down. - // API calls will not succeed until the user gets back online. - msg = _("Network error"); - break; - - case Dropbox.ApiError.INVALID_PARAM: - case Dropbox.ApiError.OAUTH_ERROR: - case Dropbox.ApiError.INVALID_METHOD: - default: - // Caused by a bug in dropbox.js, in your application, or in Dropbox. - // Tell the user an error occurred, ask them to refresh the page. - } - - alert (prefix+msg); -}; - -SQL.IO.prototype.showDropboxAuthenticate = function() { - if (!this.dropboxClient) return false; - - // We want to use a popup window for authentication as the default redirection won't work for us as it'll make us lose our schema data - this.dropboxClient.authDriver(new Dropbox.AuthDriver.Popup({ receiverUrl: "dropbox-oauth-receiver.html" })); - - // Now let's authenticate us - var success = false; - this.dropboxClient.authenticate( function(error, client) { - if (error) { - this.showDropboxError(error); - return; - } - success = true; - return; - }); - return success; -} - -SQL.IO.prototype.dropboxsave = function() { - if (!this.showDropboxAuthenticate()) return; - - var key = this.promptName("serversaveprompt", ".xml"); - if (!key) { return; } - var filename = (key || "default") + ".xml"; - - var sql_io = this; - sql_io.listresponse("Saving...", 200); - var xml = this.owner.toXML(); - this.dropboxClient.writeFile(filename, xml, function(error, stat) { - if (error) { - sql_io.listresponse("", 200); - return this.showDropboxError(error); - } - sql_io.listresponse(filename+" "+_("was saved to Dropbox"), 200); - }); -} - -SQL.IO.prototype.dropboxload = function() { - if (!this.showDropboxAuthenticate()) return; - - var key = this.promptName("serverloadprompt", ".xml"); - if (!key) { return; } - var filename = (key || "default") + ".xml"; - - var sql_io = this; - sql_io.listresponse("Loading...", 200); - this.dropboxClient.readFile(filename, function(error, data) { - sql_io.listresponse("", 200); - if (error) { - return this.showDropboxError(error); - } - sql_io.fromXMLText(data); - }); -} - -SQL.IO.prototype.dropboxlist = function() { - if (!this.showDropboxAuthenticate()) return; - - var sql_io = this; - sql_io.listresponse("Loading...", 200); - this.dropboxClient.readdir("/", function(error, entries) { - if (error) { - sql_io.listresponse("", 200); - return this.showDropboxError(error); - } - var data = entries.join("\n")+"\n"; - sql_io.listresponse(data, 200); - }); -} - - -/* ------------------------- Dropbox end ------------------------ */ - -SQL.IO.prototype.clientsql = function() { +SQL.IO.prototype._clientsql = function() { var bp = this.owner.getOption("staticpath"); var path = bp + "db/"+window.DATATYPES.getAttribute("db")+"/output.xsl"; this.owner.window.showThrobber(); - OZ.Request(path, this.finish.bind(this), {xml:true}); + OZ.Request(path, this._transform.bind(this), {xml:true}); } -SQL.IO.prototype.finish = function(xslDoc) { +SQL.IO.prototype._transform = function(xslDoc) { this.owner.window.hideThrobber(); var xml = this.owner.toXML(); var sql = ""; @@ -392,98 +122,40 @@ SQL.IO.prototype.finish = function(xslDoc) { this.dom.ta.value = sql.trim(); } -SQL.IO.prototype.serversave = function(e, keyword) { - var name = keyword || prompt(_("serversaveprompt"), this._name); - if (!name) { return; } - this._name = name; - var xml = this.owner.toXML(); - var bp = this.owner.getOption("xhrpath"); - var url = bp + "backend/"+this.dom.backend.value+"/?action=save&keyword="+encodeURIComponent(name); - var h = {"Content-type":"application/xml"}; - this.owner.window.showThrobber(); - this.owner.setTitle(name); - OZ.Request(url, this.saveresponse, {xml:true, method:"post", data:xml, headers:h}); +SQL.IO.prototype._quicksave = function(e) { + this._currentStorage.quicksave(e); } -SQL.IO.prototype.quicksave = function(e) { - this.serversave(e, this._name); -} - -SQL.IO.prototype.serverload = function(e, keyword) { - var name = keyword || prompt(_("serverloadprompt"), this._name); - if (!name) { return; } - this._name = name; - var bp = this.owner.getOption("xhrpath"); - var url = bp + "backend/"+this.dom.backend.value+"/?action=load&keyword="+encodeURIComponent(name); - this.owner.window.showThrobber(); - this.name = name; - OZ.Request(url, this.loadresponse, {xml:true}); -} - -SQL.IO.prototype.serverlist = function(e) { - var bp = this.owner.getOption("xhrpath"); - var url = bp + "backend/"+this.dom.backend.value+"/?action=list"; - this.owner.window.showThrobber(); - OZ.Request(url, this.listresponse); -} - -SQL.IO.prototype.serverimport = function(e) { - var name = prompt(_("serverimportprompt"), ""); - if (!name) { return; } - var bp = this.owner.getOption("xhrpath"); - var url = bp + "backend/"+this.dom.backend.value+"/?action=import&database="+name; - this.owner.window.showThrobber(); - OZ.Request(url, this.importresponse, {xml:true}); -} - -SQL.IO.prototype.check = function(code) { - switch (code) { - case 201: - case 404: - case 500: - case 501: - case 503: - var lang = "http"+code; - this.dom.ta.value = _("httpresponse")+": "+_(lang); - return false; - break; - default: return true; - } -} - -SQL.IO.prototype.saveresponse = function(data, code) { - this.owner.window.hideThrobber(); - this.check(code); -} - -SQL.IO.prototype.loadresponse = function(data, code) { - this.owner.window.hideThrobber(); - if (!this.check(code)) { return; } - this.fromXML(data); - this.owner.setTitle(this.name); -} - -SQL.IO.prototype.listresponse = function(data, code) { - this.owner.window.hideThrobber(); - if (!this.check(code)) { return; } - this.dom.ta.value = data; -} - -SQL.IO.prototype.importresponse = function(data, code) { - this.owner.window.hideThrobber(); - if (!this.check(code)) { return; } - if (this.fromXML(data)) { - this.owner.alignTables(); - } -} - -SQL.IO.prototype.press = function(e) { +SQL.IO.prototype._keydown = function(e) { switch (e.keyCode) { case 113: if (OZ.opera) { e.preventDefault(); } - this.quicksave(e); + this._currentStorage.quicksave(e); break; } } + +SQL.IO.prototype._addStorage = function(ctor, parent) { + var storage = new ctor(this); + if (!storage.isSupported()) { return; } + + var option = storage.getOption(); + option.value = this._storages.length; + parent.appendChild(option); + this._storages.push(storage); +} + +SQL.IO.prototype._storageChange = function(e) { + var index = Number(e.target.selectedIndex); + this._setStorage(index); +} + +SQL.IO.prototype._setStorage = function(index) { + this._currentStorage && this._currentStorage.deactivate(); + this.dom.content.innerHTML = ""; + + this._currentStorage = this._storages[index]; + this._currentStorage.activate(this.dom.content); +} diff --git a/js/relation.js b/js/relation.js index f593759..db47cdc 100644 --- a/js/relation.js +++ b/js/relation.js @@ -13,8 +13,8 @@ SQL.Relation = function(owner, row1, row2) { if (all.length) { /* inherit */ this.color = all[0].getColor(); } else if (CONFIG.RELATION_COLORS) { /* pick next */ - this.constructor._counter++; - var colorIndex = this.constructor._counter - 1; + SQL.Relation._counter++; + var colorIndex = SQL.Relation._counter - 1; this.color = CONFIG.RELATION_COLORS[colorIndex % CONFIG.RELATION_COLORS.length]; } diff --git a/js/rowmanager.js b/js/rowmanager.js index baa643d..e192396 100644 --- a/js/rowmanager.js +++ b/js/rowmanager.js @@ -23,7 +23,7 @@ SQL.RowManager = function(owner) { OZ.Event.add(this.dom.foreigncreate, "click", this.foreigncreate.bind(this)); OZ.Event.add(this.dom.foreignconnect, "click", this.foreignconnect.bind(this)); OZ.Event.add(this.dom.foreigndisconnect, "click", this.foreigndisconnect.bind(this)); - OZ.Event.add(document, "keydown", this.press.bind(this)); + OZ.Event.add(window, "keydown", this.press.bind(this)); SQL.subscribe("tableclick", this.tableClick.bind(this)); SQL.subscribe("rowclick", this.rowClick.bind(this)); diff --git a/js/storage.browser.js b/js/storage.browser.js new file mode 100644 index 0000000..595bad2 --- /dev/null +++ b/js/storage.browser.js @@ -0,0 +1,98 @@ +SQL.Storage.Browser = function(owner) { + SQL.Storage.call(this, owner); + this._dom.option.innerHTML = _("storage.browser"); + this._prefix = "wwwsqldesigner_databases_"; + + this._buildButton("clientlocalsave", "_clickSave"); + this._buildButton("clientlocalload", "_clickLoad"); + this._dom.list = document.createElement("select"); +} +SQL.Storage.Browser.prototype = Object.create(SQL.Storage.prototype); + +SQL.Storage.Browser.prototype.activate = function(parent) { + parent.appendChild(this._dom.list); + + SQL.Storage.prototype.activate.call(this, parent); + + this._list(); +} + +SQL.Storage.Browser.prototype._save = function(keyword) { + var xml = this.owner.owner.toXML(); + if (xml.length >= (5*1024*1024)/2) { /* this is a very big db structure... */ + alert("Warning: your database structure is above 5 megabytes in size, this is above the localStorage single key limit allowed by some browsers, example Mozilla Firefox 10"); + return; + } + + var key = this._prefix + keyword; + + try { + localStorage.setItem(key, xml); + if (localStorage.getItem(key) != xml) { throw new Error("Content verification failed"); } + this._keyword = keyword; + this._list(); + } catch (e) { + alert("Error saving database structure to localStorage! ("+e.message+")"); + } +} + +SQL.Storage.Browser.prototype._load = function(keyword) { + try { + var xml = localStorage.getItem(this._prefix + keyword); + if (!xml) { throw new Error("No data available"); } + } catch (e) { + alert("Error loading database structure from localStorage! ("+e.message+")"); + return; + } + + this.owner.fromXMLText(xml); + this._keyword = keyword; +} + +SQL.Storage.Browser.prototype._clickSave = function(e) { + var keyword = this._dom.list.value; + if (!keyword) { + keyword = this.owner.promptName("serversaveprompt"); + if (!keyword) { return; } + } + + this._save(keyword); +} + +SQL.Storage.Browser.prototype._clickLoad = function(e) { + var keyword = this._dom.list.value; + if (!keyword) { + alert("Error loading saved data"); + return; + } + + this._load(keyword); +} + +SQL.Storage.Browser.prototype._list = function() { + var re = new RegExp("^" + this._prefix); + var localLen = localStorage.length; + var results = []; + + for (var i = 0; i حفظ / تحميل قم بوضع بيانات نموذج XML في المربع أدناه، ثم حاول مرّة أخرى. - العميل - الخادم - المدخلات / المخرجات حفظ كنموذح XML إستيراد نموذج XML حفظ كنموذج SQL diff --git a/locale/cs.xml b/locale/cs.xml index 177d2d4..2f589a2 100644 --- a/locale/cs.xml +++ b/locale/cs.xml @@ -70,9 +70,11 @@ Uložit / Načíst Prosím vložte XML data do textového pole níže. - Klient - Server - Vstup / Výstup + Úložiště + V prohlížeči + Schránka + Vzdálený REST server + Dropbox Uložit XML Načíst XML Uložit v prohlížeči diff --git a/locale/de.xml b/locale/de.xml index 46d4f23..5a1702e 100644 --- a/locale/de.xml +++ b/locale/de.xml @@ -69,9 +69,6 @@ Speichern / Laden Bitte fügen Sie die XML-Daten in das untere Textfeld ein und versuchen es erneut. - Client - Server - Eingabe / Ausgabe XML speichern XML laden SQL erzeugen diff --git a/locale/el.xml b/locale/el.xml index f157dfd..f87534c 100644 --- a/locale/el.xml +++ b/locale/el.xml @@ -69,9 +69,6 @@ Αποθήκ./Άνοιγμα Κάντε επικόλληση των δεδομένων XML στο πεδίο κειμένου παρακάτω και δοκιμάστε ξανά. - Πελάτης - Διακομιστής - Εισαγωγή/Εξαγωγή Αποθήκευση XML Άνοιγμα XML Δημιουργία SQL diff --git a/locale/en.xml b/locale/en.xml index 51c42b6..16a6b28 100755 --- a/locale/en.xml +++ b/locale/en.xml @@ -70,9 +70,11 @@ Save / Load Please paste XML data into the text area below and try again. - Client - Server - Input / Output + Storage + Browser storage + System clipboard + Remote REST server + Dropbox Save XML Load XML Save in Browser diff --git a/locale/eo.xml b/locale/eo.xml index cb5b3d3..6ed5cec 100644 --- a/locale/eo.xml +++ b/locale/eo.xml @@ -70,9 +70,6 @@ Konservi / Ŝargi Bonvolu alglui XML datumon en la tekst-zono sube kaj provi de nove. - Kliento - Servilo - Enigo / Eligo Konservi XML Ŝargi XML Krei SQL diff --git a/locale/es.xml b/locale/es.xml index c895d59..c5196ca 100644 --- a/locale/es.xml +++ b/locale/es.xml @@ -70,9 +70,6 @@ habilitadas para opciones de trabajo. Guardar / Cargar Favor de pegar el XML dentro del área de texto siguiente e intentar nuevamente. - Cliente - Servidor - Entrada / Salida Guardar XML Cargar XML Generar SQL diff --git a/locale/fr.xml b/locale/fr.xml index e7d3302..cbe5f05 100644 --- a/locale/fr.xml +++ b/locale/fr.xml @@ -70,9 +70,6 @@ Enregistrer / Charger Merci de coller les données XML dans le champs prévu avant de ré-essayer. - Client - Serveur - Entrée / Sortie Enregistrer XML Charger XML Enregistrer dans le navigateur diff --git a/locale/hu.xml b/locale/hu.xml index c6ca773..dcb130d 100644 --- a/locale/hu.xml +++ b/locale/hu.xml @@ -69,9 +69,6 @@ Mentés / Beolvasás Kérem illessze be az XML-tartalmat az alábbi szöveges mezőbe, és próbálja újra. - Kliens - Szerver - Bemenet / Kimenet XML mentése XML beolvasása SQL generálása diff --git a/locale/it.xml b/locale/it.xml index 69e929d..c18441f 100644 --- a/locale/it.xml +++ b/locale/it.xml @@ -70,9 +70,6 @@ Salva / Carica Reincolla i dati XML nell'area sottostante e prova di nuovo. - Intestatario - Server - Ingresso / Uscita Salva XML Carica XML Genera SQL diff --git a/locale/ja.xml b/locale/ja.xml index be5abcc..db6d605 100644 --- a/locale/ja.xml +++ b/locale/ja.xml @@ -68,9 +68,6 @@ 保存/読み込み 下の入出力欄にXMLデータを貼りつけてから実行してください。 - クライアント - サーバ - 入力出欄 XMLを出力 XMLを読込 SQLを生成 diff --git a/locale/nl.xml b/locale/nl.xml index b236de7..888e320 100644 --- a/locale/nl.xml +++ b/locale/nl.xml @@ -70,9 +70,6 @@ Opslaan / laden Please paste XML data into the text area below and try again. - Lokaal - Server - Input / Output XML Opslaan XML Laden Opslaan in Browser diff --git a/locale/pl.xml b/locale/pl.xml index 7350c40..12f31d9 100644 --- a/locale/pl.xml +++ b/locale/pl.xml @@ -70,9 +70,6 @@ Zapisz / Otwórz Proszę wklej kod XML w poniższe pole tekstowe i spróbuj ponownie. - Klient - Serwer - Wejście / Wyjście Zapisz XML Załaduj XML Generuj SQL diff --git a/locale/pt_BR.xml b/locale/pt_BR.xml index 3d6df03..8bc79f0 100644 --- a/locale/pt_BR.xml +++ b/locale/pt_BR.xml @@ -69,9 +69,6 @@ Salvar / Carregar Por favor cole os dados XML na área de texto abaixo e tente novamente. - Cliente - Servidor - Entrada / Saída Salvar XML Carregar XML Gerar SQL diff --git a/locale/ro.xml b/locale/ro.xml index 6b1ffdd..1a1f275 100644 --- a/locale/ro.xml +++ b/locale/ro.xml @@ -69,9 +69,6 @@ Salveaza / Incarca Introduceti codul XML si re-incercati. - Client - Server - Input / Output Genereaza XML Incarca din XML Genereaza SQL diff --git a/locale/ru.xml b/locale/ru.xml index 4248c7a..c2c3fcf 100644 --- a/locale/ru.xml +++ b/locale/ru.xml @@ -69,9 +69,6 @@ Сохранить / Загрузить Пожалуйста, вставьте XML данные в поле ниже и попробуйте ещё раз. - Клиент - Сервер - Ввод / Вывод Сохранить XML Загрузить XML Генерировать SQL diff --git a/locale/sv.xml b/locale/sv.xml index 583b5bf..00f7cf5 100644 --- a/locale/sv.xml +++ b/locale/sv.xml @@ -69,9 +69,6 @@ Spara / Ladda Vänligen klistra in XML i textrutan nedan och försök igen. - Klient - Server - Input / Output Spara XML Ladda XML Generera SQL diff --git a/locale/zh.xml b/locale/zh.xml index 5e8f71b..b2c2351 100644 --- a/locale/zh.xml +++ b/locale/zh.xml @@ -72,9 +72,6 @@ 注销 保存 / 载入 请先粘帖一个XML文件内容到文本框中,然后再导入。 - 客户端 - 服务端 - 输入 / 输出 保存为XML 载入XML 传化为数据库脚本 diff --git a/styles/ie6.css b/styles/ie6.css deleted file mode 100644 index 2e56ff6..0000000 --- a/styles/ie6.css +++ /dev/null @@ -1,62 +0,0 @@ -v\:* { - behavior:url(#default#VML); -} - -#bar { - position: absolute; - right: auto; - left: expression(eval(document.documentElement.scrollLeft)+document.documentElement.clientWidth-eval(this.offsetWidth)); - top: expression(eval(document.documentElement.scrollTop)); -} - -#bar .shadow-corner { - background-image: none; - filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/bar_corner.png',sizingMethod='crop'); - overflow: hidden; -} - -#bar .shadow-left { - background-image: none; - filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/bar_left.png',sizingMethod='crop'); - height: expression(eval(this.parentNode.offsetHeight)); - overflow: hidden; -} - -#bar .shadow-bottom { - background-image: none; - filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/bar_bottom.png',sizingMethod='crop'); - width: expression(eval(this.parentNode.offsetWidth)); - overflow: hidden; -} - -.table .shadow-corner { - background-image: none; -} - -.table .shadow-right { - background-image: none; -} - -.table .shadow-bottom { - background-image: none; -} - -#minimap { - filter: alpha(opacity=90); - position: absolute; - right: auto; - left: expression(eval(document.documentElement.scrollLeft)+document.documentElement.clientWidth-eval(this.offsetWidth)); - top: expression(eval(document.documentElement.scrollTop)+document.documentElement.clientHeight-eval(this.offsetHeight)); -} - -#background { - filter: alpha(opacity=50); -} - -#keys, #opts { - width: expression(eval(document.documentElement.clientWidth)/2); -} - -#rubberband { - filter: alpha(opacity=50); -} \ No newline at end of file diff --git a/styles/ie7.css b/styles/ie7.css deleted file mode 100644 index 876bba7..0000000 --- a/styles/ie7.css +++ /dev/null @@ -1,19 +0,0 @@ -v\:* { - behavior:url(#default#VML); -} - -#minimap { - filter: alpha(opacity=90); -} - -#background { - filter: alpha(opacity=50); -} - -#keys, #opts { - width: expression(eval(document.documentElement.clientWidth)/2); -} - -#rubberband { - filter: alpha(opacity=50); -} diff --git a/styles/style.css b/styles/style.css index 4a8f8e0..e7387b5 100644 --- a/styles/style.css +++ b/styles/style.css @@ -40,7 +40,7 @@ body { -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=5, Direction=215, Color='#888888')"; /* IE 8 */ } -#bar input { +#bar input, #bar button { display: block; width: 90%; margin: auto; @@ -228,7 +228,7 @@ legend { font-weight: bold; } -label, input, select { +label, input, button, select { vertical-align: middle; }