Skip to content
Browse files

Added copyright notice and animation for Ajax

  • Loading branch information...
1 parent ceb21b0 commit f944f509fcbd3e6fcf317505f9609271f9e9020f @DmitryBaranovskiy DmitryBaranovskiy committed Aug 27, 2012
Showing with 181 additions and 10 deletions.
  1. +65 −0 anim.svg
  2. +21 −0 icon-progress.svg
  3. +21 −0 icon.svg
  4. +38 −10 main.js
  5. +35 −0 pgb.css
  6. +1 −0 qrcode.js
View
65 anim.svg
@@ -0,0 +1,65 @@
+<!--
+ Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the "Software"),
+ to deal in the Software without restriction, including without limitation
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ and/or sell copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
+-->
+<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="239px" height="60px" viewBox="-188 -7 478 120">
+ <defs>
+ <path id="path" d="M-82.5,51c0,0,7,1.5,15,1.5s8-4,16-4s8,4,16,4s8-4,16-4s8,4,16,4s8-4,16-4s8,4,16,4s7.999-4,16-4s8,4,16,4s8-4,16-4s8,4,16,4s8-4,16-4s8,4,16,4s8-4,16-4s8,4,16,4s8-4,16-4s8,3,16,2.5"/>
+ <clipPath id="dot">
+ <rect x="-188" y="20" width="478" height="100"/>
+ </clipPath>
+ </defs>
+ <g fill="#fff">
+ <g clip-path="url(#dot)">
+ <circle r="8">
+ <animateMotion dur="3s" repeatCount="indefinite">
+ <mpath xlink:href="#path"/>
+ </animateMotion>
+ </circle>
+ <circle r="7">
+ <animateMotion dur="3s" begin=".25s" repeatCount="indefinite">
+ <mpath xlink:href="#path"/>
+ </animateMotion>
+ </circle>
+ <circle r="6">
+ <animateMotion dur="3s" begin=".5s" repeatCount="indefinite">
+ <mpath xlink:href="#path"/>
+ </animateMotion>
+ </circle>
+ <circle r="5">
+ <animateMotion dur="3s" begin=".75s" repeatCount="indefinite">
+ <mpath xlink:href="#path"/>
+ </animateMotion>
+ </circle>
+ <circle r="4">
+ <animateMotion dur="3s" begin="1s" repeatCount="indefinite">
+ <mpath xlink:href="#path"/>
+ </animateMotion>
+ </circle>
+ <circle r="3">
+ <animateMotion dur="3s" begin="1.25s" repeatCount="indefinite">
+ <mpath xlink:href="#path"/>
+ </animateMotion>
+ </circle>
+ </g>
+ <path id="brackets" d="M-98,1h-60c-11.046,0-20,8.954-20,20v60c0,11.046,8.954,20,20,20h60c11.046,0,20-8.954,20-20V21C-78,9.954-86.954,1-98,1zM-90,71c0,5.523-4.477,10-10,10h-56c-5.523,0-10-4.477-10-10V23c0-5.523,4.477-10,10-10h56c5.523,0,10,4.477,10,10V71zM-125,33h15v26h-15v13h27V21h-27V33zM-158,72h27V59h-14V33h14V21h-27V72z"/>
+ <path id="logo" d="M205.086,79.898l1.925,0.971l7.466-3.861v-5.291l-38.287-19.509l-7.703,3.368v23.6l38.289,18.781l7.701-4.092v-4.092l-9.391-5.771V79.898zM270.229,50.655l7.454-3.85v-5.296l-20.915-10.666V61.27l13.215,6.49l7.7-4.102v-4.092l-9.388-5.784v-4.091L270.229,50.655zM180.043,22.588v21.434l5.459,3.615v6.986l31.051,15.822v7.828l-4.125,2.136l4.94,2.622l37.325-18.303v-42.14l-37.09-18.545L180.043,22.588zM239.483,42.787l8.664-3.984v7.84l-8.664,3.845V42.787zM222.664,51.003l8.67-3.985v7.841l-8.67,3.855V51.003z"/>
+ </g>
+</svg>
View
21 icon-progress.svg
@@ -1,3 +1,24 @@
+<!--
+ Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the "Software"),
+ to deal in the Software without restriction, including without limitation
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ and/or sell copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
+-->
<svg viewBox="0 0 160 192" height="120" width="100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<defs>
<!-- <pattern id="bigwave" patternUnits="userSpaceOnUse" x="0" y="0" width="32" height="32" viewBox="0 0 32 32" >
View
21 icon.svg
@@ -1,3 +1,24 @@
+<!--
+ Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the "Software"),
+ to deal in the Software without restriction, including without limitation
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ and/or sell copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
+-->
<svg viewBox="0 0 160 192" height="120" width="100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<defs>
<path id="logo" d="M10.982,24.057l0.537,0.27L13.6,23.25v-1.476L2.926,16.336l-2.148,0.939v6.58l10.675,5.236L13.6,27.95V26.81l-2.618-1.611V24.057zM29.143,15.904l2.08-1.074v-1.477l-5.833-2.973v8.482l3.685,1.809l2.148-1.142v-1.142l-2.618-1.611v-1.142L29.143,15.904zM4,8.078v5.976l1.522,1.008v1.948l8.657,4.41v2.183l-1.15,0.595l1.377,0.732l10.406-5.103V8.078l-10.34-5.17L4,8.078zM20.571,13.709l2.416-1.111v2.186l-2.416,1.073V13.709zM15.883,16l2.417-1.111v2.187l-2.417,1.074V16z"/>
View
48 main.js
@@ -1,3 +1,26 @@
+/*
+ * Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+
/*jslint vars: true, plusplus: true, devel: true, nomen: true, regexp: true, indent: 4, maxerr: 50 */
/*global define, $, brackets, window */
@@ -68,13 +91,15 @@ define(function (require, exports, module) {
console.log(path2);
var $panel = $('<div id="pgb-panel" class="bottom-panel">\
- <div class="toolbar simple-toolbar-layout">\
- <div class="title">PhoneGap Build</div>\
- <div class="title" id="search-result-summary"></div>\
- <a href="#" class="close">&times;</a>\
- </div>\
- <div class="table-container"></div>\
- </div>');
+ <div class="toolbar simple-toolbar-layout">\
+ <div class="title">PhoneGap Build</div>\
+ <div class="title" id="search-result-summary"></div>\
+ <a href="#" class="close">&times;</a>\
+ </div>\
+ <div class="table-container"></div>\
+ <div id="pgb-anim">&nbsp;</div>\
+ </div>'),
+ anim = $("#pgb-anim", $panel);
$(".content").append($panel);
$(".close", $panel).click(eve.f("pgb.panel.close"));
var $tableContainer = $(".table-container", $panel),
@@ -96,9 +121,12 @@ define(function (require, exports, module) {
});
}
eve.on("pgb.status", function () {
- button[0].className = eve.nt().split(/[\.\/]/)[2];
+ var type = eve.nt().split(/[\.\/]/)[2];
+ button[0].className = type;
+ anim[type == "progress" ? "show" : "hide" ]();
});
eve.on("pgb.login", function (login, password) {
+ eve("pgb.anim");
ajax("token", "login", "post", login, password);
});
eve.on("pgb.list", function () {
@@ -151,7 +179,7 @@ define(function (require, exports, module) {
eve.on("pgb.success.list", function (json) {
console.warn(json);
// eve("pgb.projectinfo", null, json.apps[0].id);
- var html = '<div class="table-container"><table class="condensed-table">';
+ var html = '<table class="condensed-table">';
for (var i = 0; i < json.apps.length; i++) {
var app = json.apps[i];
html += format('<tr><td><img src="https://build.phonegap.com{icon.link}" height="20" alt="icon" style="margin: -5px"></td><td><a href="https://build.phonegap.com/apps/{id}" target="_blank">{title}</a></td><td>\
@@ -163,7 +191,7 @@ define(function (require, exports, module) {
<span data-download="{download.symbian}" id="pgb-app-symbian-{id}" class="icon symbian-{status.symbian}"></span>\
</td><td class="pgb-desc">{description}</td></tr>\n', app);
}
- html += "</table></div>";
+ html += "</table>";
$tableContainer.html(html);
$tableContainer.click(eve.f("pgb.click.qr"));
});
View
35 pgb.css
@@ -1,3 +1,26 @@
+/*
+ * Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ */
+
#pgb-btn:link {
opacity: .5;
}
@@ -106,4 +129,16 @@
#pgb-panel td {
white-space: nowrap;
text-overflow: ellipsis;
+}
+#pgb-panel {
+ position: relative;
+}
+#pgb-anim {
+ background: rgba(0, 0, 0, .75) url("anim.svg") no-repeat 50% 50%;
+ display: none;
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ top: 0;
+ left: 0;
}
View
1 qrcode.js
@@ -465,6 +465,7 @@ var qrcode = function() {
} );
};
+ // Brackets plugins addon: export as SVG Path.
_this.createSVGPath = function (cellSize) {
cellSize = cellSize || 2;

0 comments on commit f944f50

Please sign in to comment.
Something went wrong with that request. Please try again.