Permalink
Browse files

Better switch button (background was added to be displayed while the …

…rest is being processed)
  • Loading branch information...
1 parent 1629657 commit 750004c0438066f836ff8d1c3840b41eeca271b2 @dmfrancisco committed Jul 16, 2011
@@ -132,6 +132,15 @@
/* background-image: url('../images/toolbar-tip.png'); */
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACUAAAAyCAYAAADbTRIgAAAC7mlDQ1BJQ0MgUHJvZmlsZQAAeAGFVM9rE0EU/jZuqdAiCFprDrJ4kCJJWatoRdQ2/RFiawzbH7ZFkGQzSdZuNuvuJrWliOTi0SreRe2hB/+AHnrwZC9KhVpFKN6rKGKhFy3xzW5MtqXqwM5+8943731vdt8ADXLSNPWABOQNx1KiEWlsfEJq/IgAjqIJQTQlVdvsTiQGQYNz+Xvn2HoPgVtWw3v7d7J3rZrStpoHhP1A4Eea2Sqw7xdxClkSAog836Epx3QI3+PY8uyPOU55eMG1Dys9xFkifEA1Lc5/TbhTzSXTQINIOJT1cVI+nNeLlNcdB2luZsbIEL1PkKa7zO6rYqGcTvYOkL2d9H5Os94+wiHCCxmtP0a4jZ71jNU/4mHhpObEhj0cGDX0+GAVtxqp+DXCFF8QTSeiVHHZLg3xmK79VvJKgnCQOMpkYYBzWkhP10xu+LqHBX0m1xOv4ndWUeF5jxNn3tTd70XaAq8wDh0MGgyaDUhQEEUEYZiwUECGPBoxNLJyPyOrBhuTezJ1JGq7dGJEsUF7Ntw9t1Gk3Tz+KCJxlEO1CJL8Qf4qr8lP5Xn5y1yw2Fb3lK2bmrry4DvF5Zm5Gh7X08jjc01efJXUdpNXR5aseXq8muwaP+xXlzHmgjWPxHOw+/EtX5XMlymMFMXjVfPqS4R1WjE3359sfzs94i7PLrXWc62JizdWm5dn/WpI++6qvJPmVflPXvXx/GfNxGPiKTEmdornIYmXxS7xkthLqwviYG3HCJ2VhinSbZH6JNVgYJq89S9dP1t4vUZ/DPVRlBnM0lSJ93/CKmQ0nbkOb/qP28f8F+T3iuefKAIvbODImbpt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bkKQf+J4AJW/jIXEB449y1orQqdvFNJtv+YXPYuOa6FZLmHKuCSQsdsToDSsRBHTPsaifjyuXPnShT62rVr7ZjjhZUGLWSs60VLgAVg2gaEDQoUgk+fPh3HAWET/8lahTZ2kSJ+SXTmUGF8he/p8M+tRGEN5otguPQ7Y4ES8kdrInGKJCmPa2T/BdRqUfheAKlChz9dX7Fixe+gD2b4/weo0cCKfuE++ulHjv0PzIUFmp/U1hUAAAAASUVORK5CYII=);
}
+
+ #switch {
+ /* background-image: url(../images/switch-bgd.png); */
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAAYCAYAAABtGnqsAAAACXBIWXMAAAsTAAALEwEAmpwYAAABlUlEQVRYCe1ZS6qEMBB0RHi48xKCR3DhgTzGHFMQvIDgVmYj73WGetM2iXYizMbOpj+pqoxlEhfzaNv2Wdf1T2Yj2oFxHF9FVVVZ13XZuq5OoCzLXU5NmpN9jgeGIuFQn3GAo6jhAedb+2ytVM6R7jzP2aPv+2fTNLYD6e1EjmEYXnkkx+DCgXzbNtGyUusAeWc7UOtWAGc7MGCMpu12oB1hjVV+jB1hvy9RXTvCUXbtwbYD934kVfYVTrLtQzIDP14kZe4OxJeYInKooeYRucTIGjiKyIGhKHuoeUQOPK/RkzGEIRwNzPOI/I3QYwoIhgS4oAYDvFYXuFie77f4elJX1hrOEcb7FT4i4AecYeQ88TS9FMy3OPIZaF27A7EjEmOBt4fIdfL87a9z+i8/wxA3hkN4aGp4hOdDw+EY4vKacqyfokvc/zuQCyDn4jzHPEXZ5zXPjzhSJ8TjGlqO1OI1z7k27/Pch7EjzF1JyN0RDrmcoHcrCvlmO/DiK3d3IP5wuah1S3qxLEs2TdMtH/7qQ5N3v46g01zjzw0WAAAAAElFTkSuQmCC);
+ background-repeat: no-repeat;
+ height: 24px;
+ width: 80px;
+ .rounded(3px);
+ }
}
/* Preview panel */
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -514,7 +514,7 @@ var escrito = function () {
// Iphone switch
$('#switch').iphoneSwitch("on", previewOn, writeOn,
- $('textarea'), $('#import-button'), { switch_path: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAAYCAYAAAAxkDmIAAAACXBIWXMAAAsTAAALEwEAmpwYAAAEc0lEQVRoBdVaSy8sQRQ+M5rBio3YEBbikSB2FmJBIpF4/Aj+gF9w7/1JbGY2LFja4A4hglgi8Vh4jMfM7a/uPX2P1nqqqnsmNZV06vWdU+dRp7qqujOTk5M/BwYGcuRguru7K83Ozv7Y3d2l7u5uymQyTkhZqVTo9vaWxsfHaXNz81dnZ6eT9js9PS15HR0dNDU1RS8vL8p4ra2tn8poRF+4XeIZgxw4ruvQxGF2dnbo/v6eVldXaWRkhGBYJDiay37Nb/naLjGyHIWX/bIcheXxj46OKJ/Pk8v2u7m5Ia+vry9wKIRnx9mUbWjixoNsMODg4CBdXl6CvTPJX/Vof3+fcrlcIptJ/aGcrCctw35ZZywWI4hUNAZW167X19e6jmc7mFcul8VyZ8umNnQs2/Pzc20GSMC1VCopu7GMCVjVjBSyeTXjnhJjvGvf3t4Sc8O7ldP/9ze3mOfsYHPK+lKoCK7vkPqjcXQgt03ZbJY8z1MPyuD1/v6uniR805DNViddOsjYEA5GtDQ1NenqFeBA09bWRldXV7S1tUXHx8c0PDxMMzMz1NXVRVj6Pz4+ArxJgSM4ySQxGc8GqxxsQ1hPGiynENTUwYjW9vZ2Wl9fV85taWlRUVwsFung4ICmp6dpfn6eHh8fFX9TnSBTGku96bim+KzrM5AdbKpYc3OzitxCoaAmB5ZpOB3vYuTb29uEcyJwNokd7Lr9GuKYZHokgRNxPi3kCypq4cSMuhDxr0T+XZbAqXAycHIDputsU5l0+aaNa4hdtE2UwKm/i7+Dpb3i33ZVyn9vvNjJJycniSM4bYekza8hIpgdYqr86Oioer9iI8U7Z+SYMHiGhoZMWQZ4W5kCBnUqqHcwRwgrLseWfWiPwzCdCY3EclnyQZuNMXF2Xl5eJux2sZyijgcORh3P3Nyc9RkbMkE2fqrZhnWTeKknl5lPOGd6xnFd5lyWGLVEoyOqk4E8mA7GhiaOLwwJp5gk0MCx/f39tLCwoD4KYBcu37WLi4vU09OjNmI2E0jK5LL9Is/BcQZnQ1fDhPtBF24L18MY9EdhWIa4HNGKL1ErKyvkf3KkjY0NwhFpbGyMlpaWqLe3V+2igbNNWPqj5Au3hesYL9xWra5DE8aAZ0NssnCsMU1QDmdcRCe+Ja+trakNF5yC9uvra3p6evpiaN1xIJNN5OvyTwsXRHB4BmEANiz6UK6GsaGJ44vxeLm1UZidieXa/3kg0AHLK54ofXTHCd9kRfFywX7BOzhKMSm0LEtsuF3WZfk7Gh2MpDUtgz9vspg27cjT0UEHA/kkTpZZdlOM80s0FJKbI6moSTltp6Yhk4n8tli1RH83U2yZpkUHueAYV+Vj2VyVD3KZ717S8p4mHxjRxWhx1alhs6ol2sVfYlhQHGPOz8/VBokvKmBcOJ6dr2aqwU7bBM9YTDJsmvDRAtegFxcXwTWny/bz8Pvn2dkZ29OpHLvgiYkJ2tvbU2dWV4TDxILd/F+O6fDwkB4eHlwR7ZMckPEP561S77cf6FYAAAAASUVORK5CYII=' }); // switch_path: '/images/switch.png'
+ $('textarea'), $('#import-button'), { switch_path: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAAYCAYAAAAxkDmIAAAACXBIWXMAAAsTAAALEwEAmpwYAAADX0lEQVRoBe1avU5yQRAdfsRgRUVoJCHEgCRgS0WBiYmBwEPgA8ATgG/gq0gDlYUtDSIx2GgslQRoQOVXzprlM3wXdBfQuQmbbO7dvTNzD3t2Znb3YplMJsS5XFxcFCqVSt7j8ZDFYmEBFWPWarXo6OjoPJvNFliAWgDCvqCfTXen08mfnZ1RKBQiORlBtLwnAumfk/Rr/6J7I3kVWQwM5O/u7qhUKuWnzQL6uBb2BLtcLgoEAvT09MRqDA8ODujm5oYVJiMwVqNObn1vb2/cIFG/32eHyQgQe4IRil9fX42w/2nf+/v7lzTxp1CWvpx9iAbBg8Fg6Y/4yUPkTVn+5W/Zo37dEqw+ZoYaIGM8Hhs++0mn1Wolu90uKu5hazgcirqKXeiuY6L85DesImMKD4a32Gw25d8JHafTSc/Pz3R1dUWNRoMODw8pHo+T2+0WoX80GinbhcLWg7WG7X8l6cGqBMNb9/b26PLyUpDrcDiEF9frdarVahSLxej09JS63a5WhDCLB5tikaUTSnd2doTnlstl4f0I0yAduRjX6+trajabBDmdsiVYZ9QW6KhuSUDi7u4ulUtl4bUg0SIORKZHItOcLgtIhtzXBZh89t1VFdN39jb13BQ5WNeDb+u3s9w9mZ52Tcaf5EqS7+/vtx68qZmlYlcSoqID2XA4LPIrFlJy5YwrJgxqMBhUNTmT18U0M/BLN+xzsG6uw945nU6L1S7CKdqoIBht1JOTE+09NgjWiSy/xOvsNewJxkCCFJUCHWxjfD4fJZNJoQ8vBiHymkgkaH9/X3u7o4pJBf86ZdnnYF0vgbdOv0RRJpOh4+NjKhaLhC1SJBKhVCpFXq9XrKIhp1t099C679PRY08wvBHbGtWCiYE9LvTxLTmXy4kFF0hB/8vLC/V6Pe0wC0ywzb2YgmCEW50iyYR+u90WEwXEI7yi6kYHYNmeZOkwsgEdkCgXWdK8GTxPYl31yt6D8QN1DiLmB2bdpK4D0zzGTbTVk9smUCyxCWJWCaVLTK/8aN2TZmVABgZMQTBHb+E66eY5Zh+isY15eHgQCyR5UIHBhfeggny0VVbaKvJSFu/BO/DRAmfbj4+P2sec8yRsss2eYL/ff16tVvP48sOlYGLhb7PRaPScC6ZFOD4AFNj+VItvRd8AAAAASUVORK5CYII=' }); // switch_path: '/images/switch.png'
/* Configure and start the editor */
editor.setReadOnly(true);

0 comments on commit 750004c

Please sign in to comment.