| OLD | NEW |
| 1 <html> | 1 <html i18n-values="dir:textdirection;"> |
| 2 <style type="text/css"><!-- | 2 <style type="text/css"><!-- |
| 3 body,td,div,p,a,font,span {font-family: arial,sans-serif;} | 3 body,td,div,p,a,font,span {font-family: arial,sans-serif;} |
| 4 body { bgcolor:"#ffffff" } | 4 body { bgcolor:"#ffffff" } |
| 5 A:link {color:#0000cc; } | 5 A:link {color:#0000cc; } |
| 6 A:visited { color:#551a8b; } | 6 A:visited { color:#551a8b; } |
| 7 A:active { color:#ff0000; } | 7 A:active { color:#ff0000; } |
| 8 .form-noindent {background-color: #ffffff; border: #C3D9FF 1px solid} | 8 .form-noindent {background-color: #ffffff; border: #C3D9FF 1px solid} |
| 9 --></style> | 9 --></style> |
| 10 <head> | 10 <head> |
| 11 <style type="text/css"><!-- | 11 <style type="text/css"><!-- |
| 12 .body { margin-left: 3em; | 12 .body { margin-left: 3em; |
| 13 margin-right: 5em; | 13 margin-right: 5em; |
| 14 font-family: arial,sans-serif; } | 14 font-family: arial,sans-serif; } |
| 15 .endaligned { |
| 16 text-align: right; |
| 17 } |
| 18 html[dir='rtl'] .endaligned { |
| 19 text-align: left; |
| 20 } |
| 21 #gaia_account_text { font-weight: bold; } |
| 15 div.errorbox-good {} | 22 div.errorbox-good {} |
| 16 div.errorbox-bad {} | 23 div.errorbox-bad {} |
| 17 div.errormsg { color: red; font-size: smaller; | 24 div.errormsg { color: red; font-size: smaller; |
| 18 font-family: arial,sans-serif;} | 25 font-family: arial,sans-serif; |
| 26 display: none;} |
| 19 font.errormsg { color: red; font-size: smaller; | 27 font.errormsg { color: red; font-size: smaller; |
| 20 font-family: arial,sans-serif;} | 28 font-family: arial,sans-serif;} |
| 21 hr { | 29 hr { |
| 22 border: 0; | 30 border: 0; |
| 23 background-color:#DDDDDD; | 31 background-color:#DDDDDD; |
| 24 height: 1px; | 32 height: 1px; |
| 25 width: 100%; | 33 width: 100%; |
| 26 text-align: left; | 34 text-align: left; |
| 27 margin: 5px; | 35 margin: 5px; |
| 28 } | 36 } |
| 29 --></style> | 37 --></style> |
| 30 </head> | 38 </head> |
| 31 <body dir="ltr" bgcolor="#ffffff" vlink="#666666" | 39 <body bgcolor="#ffffff" vlink="#666666" |
| 40 i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize" |
| 32 style="margin-bottom: 0" onload="initForm();"> | 41 style="margin-bottom: 0" onload="initForm();"> |
| 33 <table width="100%" align="center" cellpadding="1" cellspacing="1"> | 42 <table width="100%" align="center" cellpadding="1" cellspacing="1"> |
| 34 <tr> | 43 <tr> |
| 35 <td valign="top"> <!-- LOGIN BOX --> | 44 <td valign="top"> <!-- LOGIN BOX --> |
| 36 <script> | 45 <script> |
| 37 function gaia_setFocus() { | 46 function gaia_setFocus() { |
| 38 var f = null; | 47 var f = null; |
| 39 if (document.getElementById) { | 48 if (document.getElementById) { |
| 40 f = document.getElementById("gaia_loginform"); | 49 f = document.getElementById("gaia_loginform"); |
| 41 } else if (window.gaia_loginform) { | 50 } else if (window.gaia_loginform) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 56 ((parseInt(throbber.style.backgroundPositionX) - 16) % 576) + 'px'; | 65 ((parseInt(throbber.style.backgroundPositionX) - 16) % 576) + 'px'; |
| 57 } | 66 } |
| 58 | 67 |
| 59 function showGaiaLogin(args) { | 68 function showGaiaLogin(args) { |
| 60 var throbber = document.getElementById('throbber_container'); | 69 var throbber = document.getElementById('throbber_container'); |
| 61 throbber.style.display = "none"; | 70 throbber.style.display = "none"; |
| 62 var f = document.getElementById("gaia_loginform"); | 71 var f = document.getElementById("gaia_loginform"); |
| 63 if (f) { | 72 if (f) { |
| 64 f.Email.value = args.user; | 73 f.Email.value = args.user; |
| 65 } | 74 } |
| 66 resetErrorVisibility(); | |
| 67 if (1 == args.error) { | 75 if (1 == args.error) { |
| 68 setElementDisplay("errormsg_1_Password", 'table-row'); | 76 setElementDisplay("errormsg_1_Password", 'table-row'); |
| 69 setBlurbError(); | 77 setBlurbError(); |
| 70 } | 78 } |
| 71 if (3 == args.error) { | 79 if (3 == args.error) { |
| 72 setElementDisplay("errormsg_0_Connection", 'table-row'); | 80 setElementDisplay("errormsg_0_Connection", 'table-row'); |
| 73 setBlurbError(); | 81 setBlurbError(); |
| 74 } | 82 } |
| 75 document.getElementById("signIn").disabled = false; | 83 document.getElementById("signIn").disabled = false; |
| 76 gaia_setFocus(); | 84 gaia_setFocus(); |
| 77 } | 85 } |
| 78 | 86 |
| 79 function CloseDialog() { | 87 function CloseDialog() { |
| 80 chrome.send("DialogClose", [""]); | 88 chrome.send("DialogClose", [""]); |
| 81 } | 89 } |
| 82 | 90 |
| 83 function showGaiaSuccessAndClose() { | 91 function showGaiaSuccessAndClose() { |
| 84 document.getElementById("signIn").value = "Success!"; | 92 document.getElementById("signIn").value = templateData['success']; |
| 85 setTimeout(CloseDialog, 1600); | 93 setTimeout(CloseDialog, 1600); |
| 86 } | 94 } |
| 87 | 95 |
| 88 function showGaiaSuccessAndSettingUp() { | 96 function showGaiaSuccessAndSettingUp() { |
| 89 document.getElementById("signIn").value = "Setting up..."; | 97 document.getElementById("signIn").value = templateData['settingup']; |
| 90 } | 98 } |
| 91 | 99 |
| 92 function initForm() { | 100 function initForm() { |
| 101 var acct_text = document.getElementById("gaia_account_text"); |
| 102 var translated_text = acct_text.textContent; |
| 103 var posGoogle = translated_text.indexOf('Google'); |
| 104 if (posGoogle != -1) { |
| 105 var ltr = templateData['textdirection'] == 'ltr'; |
| 106 var googleIsAtEndOfSentence = posGoogle != 0; |
| 107 if (googleIsAtEndOfSentence == ltr) { |
| 108 // We're in ltr and in the translation the word 'Google' is AFTER the |
| 109 // word 'Account' OR we're in rtl and 'Google' is BEFORE 'Account'. |
| 110 var logo_td = document.getElementById('gaia_logo'); |
| 111 logo_td.parentNode.appendChild(logo_td); |
| 112 } |
| 113 acct_text.textContent = translated_text.replace('Google',''); |
| 114 } |
| 93 setInterval(advanceThrobber, 30); | 115 setInterval(advanceThrobber, 30); |
| 94 var args = JSON.parse(chrome.dialogArguments); | 116 var args = JSON.parse(chrome.dialogArguments); |
| 95 showGaiaLogin(args); | 117 showGaiaLogin(args); |
| 96 } | 118 } |
| 97 | 119 |
| 98 function sendCredentialsAndClose() { | 120 function sendCredentialsAndClose() { |
| 99 if (!setErrorVisibility()) | 121 if (!setErrorVisibility()) |
| 100 return false; | 122 return false; |
| 101 | 123 |
| 102 var throbber = document.getElementById('throbber_container'); | 124 var throbber = document.getElementById('throbber_container'); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 <table class="form-noindent" cellspacing="3" cellpadding="5" width="100%" | 193 <table class="form-noindent" cellspacing="3" cellpadding="5" width="100%" |
| 172 border="0"> | 194 border="0"> |
| 173 <tr> | 195 <tr> |
| 174 <td valign="top" style="text-align:center" nowrap="nowrap" | 196 <td valign="top" style="text-align:center" nowrap="nowrap" |
| 175 bgcolor="#e8eefa"> | 197 bgcolor="#e8eefa"> |
| 176 <div class="loginBox"> | 198 <div class="loginBox"> |
| 177 <table id="gaia_table" align="center" border="0" cellpadding="1" | 199 <table id="gaia_table" align="center" border="0" cellpadding="1" |
| 178 cellspacing="0"> | 200 cellspacing="0"> |
| 179 <tr> | 201 <tr> |
| 180 <td colspan="2" align="center"> | 202 <td colspan="2" align="center"> |
| 181 <font size="-1"><span i18n-content="signinwithyour"></span></font>
| 203 <font size="-1"><span i18n-content="signinprefix"></span></font> |
| 182 <table> | 204 <table> |
| 183 <tr> | 205 <tr> |
| 184 <td valign="top"> | 206 <td valign="top" id="gaia_logo"> |
| 185 <img src="google_transparent.png" alt="Google"> | 207 <img src="google_transparent.png" alt="Google"> |
| 186 </img> | 208 </img> |
| 187 </td> | 209 </td> |
| 188 <td valign="middle"> | 210 <td valign="middle"> |
| 189 <font size="+0"><b> | 211 <font size="+0"> |
| 190 <span i18n-content="accountlabel"></span> | 212 <span id="gaia_account_text" i18n-content="signinsuffix"><
/span> |
| 191 </b></font> | 213 </font> |
| 192 </td> | 214 </td> |
| 193 </tr> | 215 </tr> |
| 194 </table> | 216 </table> |
| 195 </td> | 217 </td> |
| 196 </tr> | 218 </tr> |
| 197 <script type="text/javascript"><!-- | 219 <script type="text/javascript"><!-- |
| 198 function onPreCreateAccount() { | 220 function onPreCreateAccount() { |
| 199 return true; | 221 return true; |
| 200 } | 222 } |
| 201 function onPreLogin() { | 223 function onPreLogin() { |
| 202 if (window["onlogin"] != null) { | 224 if (window["onlogin"] != null) { |
| 203 return onlogin(); | 225 return onlogin(); |
| 204 } else { | 226 } else { |
| 205 return true; | 227 return true; |
| 206 } | 228 } |
| 207 } | 229 } |
| 208 --></script> | 230 --></script> |
| 209 <tr> | 231 <tr> |
| 210 <td colspan="2" align="center"> </td> | 232 <td colspan="2" align="center"> </td> |
| 211 </tr> | 233 </tr> |
| 212 <tr> | 234 <tr> |
| 213 <td nowrap="nowrap"> | 235 <td nowrap="nowrap"> |
| 214 <div align="right"> | 236 <div class="endaligned"> |
| 215 <span class="gaia le lbl" i18n-content="emaillabel"> | 237 <span class="gaia le lbl" i18n-content="emaillabel"> |
| 216 </span> | 238 </span> |
| 217 </div> | 239 </div> |
| 218 </td> | 240 </td> |
| 219 <td> | 241 <td> |
| 220 <input type="text" name="Email" id="Email" size="18" | 242 <input type="text" name="Email" id="Email" size="18" |
| 221 value="" class='gaia le val' /> | 243 value="" class='gaia le val' /> |
| 222 </td> | 244 </td> |
| 223 </tr> | 245 </tr> |
| 224 <tr> | 246 <tr> |
| 225 <td></td> | 247 <td></td> |
| 226 <td align="left"> | 248 <td> |
| 227 <div class="errormsg" id="errormsg_0_Email" | 249 <div class="errormsg" id="errormsg_0_Email" |
| 228 i18n-content="cannotbeblank"> | 250 i18n-content="cannotbeblank"> |
| 229 </div> | 251 </div> |
| 230 </td> | 252 </td> |
| 231 </tr> | 253 </tr> |
| 232 <tr> | 254 <tr> |
| 233 <td></td> | 255 <td></td> |
| 234 <td align="left"> </td> | 256 <td></td> |
| 235 </tr> | 257 </tr> |
| 236 <tr> | 258 <tr> |
| 237 <td align="right"> | 259 <td class="endaligned"> |
| 238 <span class="gaia le lbl" i18n-content="passwordlabel"> | 260 <span class="gaia le lbl" i18n-content="passwordlabel"> |
| 239 </span> | 261 </span> |
| 240 </td> | 262 </td> |
| 241 <td> | 263 <td> |
| 242 <input type="password" name="Passwd" id="Passwd" size="18" | 264 <input type="password" name="Passwd" id="Passwd" size="18" |
| 243 class="gaia le val"/> | 265 class="gaia le val"/> |
| 244 </td> | 266 </td> |
| 245 </tr> | 267 </tr> |
| 246 <tr> | 268 <tr> |
| 247 <td></td> | 269 <td></td> |
| 248 <td align="left"> | 270 <td> |
| 249 <div class="errormsg" id="errormsg_0_Password" | 271 <div class="errormsg" id="errormsg_0_Password" |
| 250 i18n-content="cannotbeblank"> | 272 i18n-content="cannotbeblank"> |
| 251 </div> | 273 </div> |
| 252 </td> | 274 </td> |
| 253 </tr> | 275 </tr> |
| 254 <tr> | 276 <tr> |
| 255 <td> | 277 <td> |
| 256 </td> | 278 </td> |
| 257 <td align="left"> | 279 <td> |
| 258 <div class="errormsg" id="errormsg_1_Password"> | 280 <div class="errormsg" id="errormsg_1_Password"> |
| 259 <span i18n-content="invalidcredentials"></span>[<a href="http://ww
w.google.com/support/accounts/bin/answer.py?ctx=ch&answer=27444">?</a>] | 281 <span i18n-content="invalidcredentials"></span>[<a href="http://ww
w.google.com/support/accounts/bin/answer.py?ctx=ch&answer=27444">?</a>] |
| 260 </div> | 282 </div> |
| 261 </td> | 283 </td> |
| 262 </tr> | 284 </tr> |
| 263 <tr> | 285 <tr> |
| 264 <td> | 286 <td> |
| 265 </td> | 287 </td> |
| 266 <td align="left"> | 288 <td> |
| 267 <div class="errormsg" id="errormsg_0_Connection" | 289 <div class="errormsg" id="errormsg_0_Connection" |
| 268 i18n-content="couldnotconnect"> | 290 i18n-content="couldnotconnect"> |
| 269 </div> | 291 </div> |
| 270 </td> | 292 </td> |
| 271 </tr> | 293 </tr> |
| 272 <tr> | 294 <tr> |
| 273 <td> | 295 <td> |
| 274 </td> | 296 </td> |
| 275 <td align="left"> | 297 <td> |
| 276 </td> | 298 </td> |
| 277 </tr> | 299 </tr> |
| 278 <tr> | 300 <tr> |
| 279 <td> | 301 <td> |
| 280 </td> | 302 </td> |
| 281 <td align="left"> | 303 <td> |
| 282 <table> | 304 <table> |
| 283 <tr> | 305 <tr> |
| 284 <td> | 306 <td> |
| 285 <div id="throbber_container" style="display:none"> | 307 <div id="throbber_container" style="display:none"> |
| 286 <div id="throb" style="background-image:url(throbber.png); | 308 <div id="throb" style="background-image:url(throbber.png); |
| 287 width:16px; height:16px; background-position:0px;"> | 309 width:16px; height:16px; background-position:0px;"> |
| 288 </div> | 310 </div> |
| 289 </div> | 311 </div> |
| 290 </td> | 312 </td> |
| 291 <td> | 313 <td> |
| 292 <input id="signIn" type="button" class="gaia le button" | 314 <input id="signIn" type="button" class="gaia le button" |
| 293 name="signIn" value="Sign in" | 315 name="signIn" i18n-values="value:signin" |
| 294 onclick="sendCredentialsAndClose();" /> | 316 onclick="sendCredentialsAndClose();" /> |
| 295 </td> | 317 </td> |
| 296 </tr> | 318 </tr> |
| 297 </table> | 319 </table> |
| 298 </td> | 320 </td> |
| 299 </tr> | 321 </tr> |
| 300 <tr id="ga-fprow"> | 322 <tr id="ga-fprow"> |
| 301 <td colspan="2" height="16.0" class="gaia le fpwd" | 323 <td colspan="2" height="16.0" class="gaia le fpwd" |
| 302 align="center" valign="bottom"> | 324 align="center" valign="bottom"> |
| 303 <a href="http://www.google.com/support/accounts/bin/answer.py?answ
er=48598&hl=en&fpUrl=https%3A%2F%2Fwww.google.com%2Faccounts%2FForgotPasswd%3Ffp
Only%3D1%26service%3Dchromiumsync" | 325 <a href="http://www.google.com/support/accounts/bin/answer.py?answ
er=48598&hl=en&fpUrl=https%3A%2F%2Fwww.google.com%2Faccounts%2FForgotPasswd%3Ffp
Only%3D1%26service%3Dchromiumsync" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 315 </tr> | 337 </tr> |
| 316 </table> | 338 </table> |
| 317 </div> | 339 </div> |
| 318 </td> | 340 </td> |
| 319 </tr> | 341 </tr> |
| 320 </table> | 342 </table> |
| 321 </div> | 343 </div> |
| 322 </form> | 344 </form> |
| 323 </td> | 345 </td> |
| 324 </tr> | 346 </tr> |
| 325 </table> | 347 </table> |
| 326 <div align="right"> | 348 <div class="endaligned"> |
| 327 <input type="button" name="cancel" value="Cancel" onclick="CloseDialog();"/
> | 349 <input type="button" name="cancel" i18n-values="value:cancel" onclick="CloseDi
alog();"/> |
| 328 </div> | 350 </div> |
| 329 </table> | |
| 330 </body> | 351 </body> |
| 331 </html> | 352 </html> |
| OLD | NEW |