Skip to content
Browse files

added indicator for loading status. slight cosmetic changes.

  • Loading branch information...
1 parent 5c93e92 commit 56bae13bce4eb3fe4e759cf1b1e7d01b64901731 /k committed Jan 16, 2010
View
4 mtbcalendar_multifeed.wdgtproj/project/widget.wdgt/Info.plist
@@ -4,6 +4,8 @@
<dict>
<key>AllowFileAccessOutsideOfWidget</key>
<true/>
+ <key>AllowInternetPlugins</key>
+ <true/>
<key>AllowNetworkAccess</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
@@ -23,7 +25,7 @@
<key>CloseBoxInsetY</key>
<integer>15</integer>
<key>Height</key>
- <integer>220</integer>
+ <integer>224</integer>
<key>MainHTML</key>
<string>mtbcalendar_multifeed.html</string>
<key>Width</key>
View
BIN mtbcalendar_multifeed.wdgtproj/project/widget.wdgt/Parts/Images/back.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN ...alendar_multifeed.wdgtproj/project/widget.wdgt/Parts/Images/bottomRectangleShape_left.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN ...endar_multifeed.wdgtproj/project/widget.wdgt/Parts/Images/bottomRectangleShape_middle.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN ...lendar_multifeed.wdgtproj/project/widget.wdgt/Parts/Images/bottomRectangleShape_right.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN mtbcalendar_multifeed.wdgtproj/project/widget.wdgt/Parts/Images/front.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN mtbcalendar_multifeed.wdgtproj/project/widget.wdgt/Parts/Images/topRectangleShape_left.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN mtbcalendar_multifeed.wdgtproj/project/widget.wdgt/Parts/Images/topRectangleShape_middle.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN mtbcalendar_multifeed.wdgtproj/project/widget.wdgt/Parts/Images/topRectangleShape_right.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
1 mtbcalendar_multifeed.wdgtproj/project/widget.wdgt/Parts/parts.js
@@ -27,3 +27,4 @@ var dashcodePartSupport = {
+
View
2 mtbcalendar_multifeed.wdgtproj/project/widget.wdgt/Parts/setup.js
@@ -10,6 +10,7 @@ var dashcodePartSpecs = {
"glassbutton": { "creationFunction": "CreateGlassButton", "onclick": "openWebsite", "text": "Visit MTBcalendar", "view": "DC.View" },
"glassbutton1": { "creationFunction": "CreateGlassButton", "onclick": "openRepo", "text": "v1.0", "view": "DC.View" },
"infobutton": { "backgroundStyle": "black", "creationFunction": "CreateInfoButton", "foregroundStyle": "white", "frontID": "front", "onclick": "showBack" },
+ "loading": { "text": "Loading Events ...", "view": "DC.Text" },
"regionName": { "text": "Text", "view": "DC.Text" },
"scrollArea": { "autoHideScrollbars": true, "creationFunction": "CreateScrollArea", "hasVerticalScrollbar": true, "scrollbarDivSize": 18, "scrollbarMargin": 6, "spacing": 4 },
"text": { "text": "Choose Region", "view": "DC.Text" },
@@ -25,3 +26,4 @@ var dashcodePartSpecs = {
+
View
44 mtbcalendar_multifeed.wdgtproj/project/widget.wdgt/mtbcalendar_multifeed.css
@@ -32,8 +32,8 @@ a {
top: 0px;
left: 0px;
right: 0px;
- width: auto;
bottom: 0px;
+ width: auto;
height: auto;
}
@@ -81,11 +81,11 @@ a {
font-weight: bold;
font-style: normal;
font-family: 'Helvetica Neue';
- top: 12px;
left: 130px;
+ top: 13px;
right: 105px;
width: auto;
- bottom: 184px;
+ bottom: 183px;
height: auto;
}
@@ -94,7 +94,7 @@ a {
width: 256px;
height: 23px;
left: 12px;
- top: 185px;
+ top: 189px;
}
#option {
@@ -153,8 +153,8 @@ a {
position: absolute;
margin-top: 0px;
color: rgb(255, 255, 255);
- top: 189px;
left: 31px;
+ top: 192px;
width: auto;
height: auto;
}
@@ -222,7 +222,7 @@ a {
bottom: auto;
margin-top: 0px;
left: 243px;
- top: 189px;
+ top: 193px;
}
#scrollArea {
@@ -233,11 +233,11 @@ a {
right: auto;
bottom: auto;
margin-top: 0px;
- top: 38px;
padding: 0px;
- height: 148px;
- width: 255px;
- left: 13px;
+ left: 14px;
+ width: 252px;
+ height: 150px;
+ top: 38px;
}
#content {
@@ -308,9 +308,29 @@ a {
right: 194px;
min-height: 24px;
width: 72px;
- top: 13px;
font-family: HelveticaNeue-Light;
left: 173px;
- bottom: 183px;
+ top: 14px;
+ bottom: 182px;
height: auto;
}
+
+#loading {
+ text-overflow: ellipsis;
+ overflow: hidden;
+ position: absolute;
+ margin-top: 0px;
+ left: 54px;
+ top: 96px;
+ right: 55px;
+ width: auto;
+ bottom: 96px;
+ height: auto;
+ text-shadow: rgb(191, 191, 191) 2px 2px 1px;
+ font-size: 14pt;
+ font-family: 'Helvetica Neue';
+}
+
+.selected #loading {
+ color: white;
+}
View
5 mtbcalendar_multifeed.wdgtproj/project/widget.wdgt/mtbcalendar_multifeed.html
@@ -18,12 +18,13 @@
<body onload="load();">
<div id="front">
<img id="frontImg" src="Parts/Images/front.png" alt="" apple-locked="true" apple-part="com.apple.Dashcode.part.frontimage" apple-style="image-theme: 0; image-shape: 3; image-opacity: 1.00; image-top-color: 1,1,1,1; image-bottom-color: 0.6154,0.6154,0.6154,1; image-radius: 12,12,12,12; image-border: 1; image-border-color: 0.5294,0.5294,0.5294,1; image-border-width: 1; shine-strength: 0.90; shine-alpha-level: 0.67; shine-height: 0.50; glass-arc-height: 0.06; shadow-include-shadow: 1; shadow-offset: -1.00,-6.00; shadow-color: 0,0,0,0.3333;">
- <div apple-part="com.apple.Dashcode.part.toprectangleshape" class="apple-no-children" apple-style="image-theme: 0; image-shape: 9; image-button-type: 3; image-opacity: 1.00; image-top-color: 0,0.200000003,0,1; image-bottom-color: 1,1,1,1; image-radius: 12,12,-1,-1; image-border: 1; image-border-color: 0.529399991,0.529399991,0.529399991,1; image-border-width: 1; shine-on: 0; shine-strength: 0.90; shine-alpha-level: 0.67; shine-height: 0.50; glass-arc-height: 0.06; shadow-include-shadow: 0;" id="topRectangleShape" apple-group="topRectangleShape"></div>
+ <div apple-part="com.apple.Dashcode.part.toprectangleshape" class="apple-no-children" apple-style="image-theme: 1; image-shape: 9; image-button-type: 3; image-opacity: 1.00; image-top-color: 0,0.4,0,1; image-bottom-color: 0,0.200000003,0,1; image-radius: 12,12,-1,-1; image-border: 1; image-border-color: 0.529399991,0.529399991,0.529399991,1; image-border-width: 1; shine-on: 0; shine-strength: 0.90; shine-alpha-level: 0.67; shine-height: 0.50; glass-arc-height: 0.06; shadow-include-shadow: 0;" id="topRectangleShape" apple-group="topRectangleShape"></div>
<div apple-part="com.apple.Dashcode.part.text" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="title" apple-group="text" onclick="openWebsite(event)"></div>
<div apple-part="com.apple.Dashcode.part.text" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="title1" apple-group="text" onclick="openWebsite(event)"></div>
- <div apple-part="com.apple.Dashcode.part.bottomrectangleshape" class="apple-no-children" apple-style="image-theme: 0; image-shape: 10; image-button-type: 3; image-opacity: 1.00; image-top-color: 0.0000,0.2000,0.0000; image-bottom-color: 1.0000,1.0000,1.0000; image-radius: -1,-1,12,12; image-border: 1; image-border-color: 0.5294,0.5294,0.5294; image-border-width: 1; shine-strength: 0.90; shine-alpha-level: 0.67; shine-height: 0.50; glass-arc-height: 0.06; shadow-include-shadow: 0; shadow-blur: 3.00;" id="bottomRectangleShape" apple-group="bottomRectangleShape"></div>
+ <div apple-part="com.apple.Dashcode.part.bottomrectangleshape" class="apple-no-children" apple-style="image-theme: 1; image-shape: 10; image-button-type: 3; image-opacity: 1.00; image-top-color: 0,0.200000003,0,1; image-bottom-color: 0,0.443137255,0,1; gradient-hue-diff: 0.333333343; gradient-sat-diff: 1; gradient-bri-diff: -0.800000012; image-radius: -1,-1,12,12; image-border: 1; image-border-color: 0.5294,0.5294,0.5294,1; image-border-width: 1; shine-strength: 0.90; shine-alpha-level: 0.67; shine-height: 0.50; glass-arc-height: 0.06; shadow-include-shadow: 0;" id="bottomRectangleShape" apple-group="bottomRectangleShape"></div>
<div apple-part="com.apple.Dashcode.part.text" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="regionName" apple-style="part-height-dependent: true;part-width-dependent: true;"></div>
<div id="infobutton" apple-part="com.apple.Dashcode.part.infobutton" class="info apple-no-children" apple-default-image-visibility="hidden"></div>
+ <div id="loading" apple-part="com.apple.Dashcode.part.text" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis"></div>
<div id="scrollArea" apple-part="com.apple.Dashcode.part.scrollarea" apple-group="scrollArea">
<div id="content" class="content" apple-group="scrollArea" style="position: absolute; left: 0px; top: 0px; right: 22px; bottom: 0px; overflow-x: hidden; overflow-y: hidden; "></div></div>
</div>
View
18 mtbcalendar_multifeed.wdgtproj/project/widget.wdgt/mtbcalendar_multifeed.js
@@ -135,17 +135,23 @@ function sync()
}
function startAnimation(element) {
- // Values you provide
+ // fade out events
var itemToFadeOut = document.getElementById(element);
- // Fading code
- var fadeHandler = function(a, c, s, f){ itemToFadeOut.style.opacity = c; };
- new AppleAnimator(500, 13, 1.0, 0.0, fadeHandler).start();
+ itemToFadeOut.style.visibility = "hidden";
+ //var fadeHandler = function(a, c, s, f){ itemToFadeOut.style.opacity = c; };
+ //new AppleAnimator(1000, 13, 0.0, 1.0, fadeIndicatorHandler).start();
+ // fade in loading text
+ var itemToFadeIn = document.getElementById('loading');
+ itemToFadeIn.style.visibility = "visible";
}
function stopAnimation(element) {
- // Values you provide
+ var itemToFadeOut = document.getElementById('loading');
+ itemToFadeOut.style.visibility = "hidden";
+ // fade in events
var itemToFadeIn = document.getElementById(element);
- // Fading code
+ itemToFadeIn.style.opacity = 0;
+ itemToFadeIn.style.visibility = "visible";
var fadeHandler = function(a, c, s, f){ itemToFadeIn.style.opacity = c; };
new AppleAnimator(1000, 13, 0.0, 1.0, fadeHandler).start();
}

0 comments on commit 56bae13

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