summaryrefslogtreecommitdiffstats
path: root/tools/Sandcastle/Presentation/Shared/scripts/samples.js
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-02-02 06:18:52 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2009-02-02 06:18:52 -0800
commit045c0d9e5e1d9e71d00d8ae6cf10294186bbfb3e (patch)
tree6d5478d73e0389f1f7da4bd7ca9adbe7b130a48c /tools/Sandcastle/Presentation/Shared/scripts/samples.js
parent522851c3311ffe8d413812e95c08c4c242b6256a (diff)
downloadDotNetOpenAuth-045c0d9e5e1d9e71d00d8ae6cf10294186bbfb3e.zip
DotNetOpenAuth-045c0d9e5e1d9e71d00d8ae6cf10294186bbfb3e.tar.gz
DotNetOpenAuth-045c0d9e5e1d9e71d00d8ae6cf10294186bbfb3e.tar.bz2
More whitespace.
Diffstat (limited to 'tools/Sandcastle/Presentation/Shared/scripts/samples.js')
-rw-r--r--tools/Sandcastle/Presentation/Shared/scripts/samples.js132
1 files changed, 66 insertions, 66 deletions
diff --git a/tools/Sandcastle/Presentation/Shared/scripts/samples.js b/tools/Sandcastle/Presentation/Shared/scripts/samples.js
index bed90bc..f0c8527 100644
--- a/tools/Sandcastle/Presentation/Shared/scripts/samples.js
+++ b/tools/Sandcastle/Presentation/Shared/scripts/samples.js
@@ -1,67 +1,67 @@
-
-function closeMe()
-{
- window.close();
-}
-
-function ChangeViewCodeIcon(key)
-{
- var i;
- var imageElements = document.getElementsByName("vcImage");
- for(i=0; i<imageElements.length; ++i)
- {
- if(imageElements[i].parentElement == key)
- {
- if(imageElements[i].src == viewImage.src)
- imageElements[i].src = viewHoverImage.src;
- else
- imageElements[i].src = viewImage.src;
- }
- }
-}
-
-function ChangeDownloadCodeIcon(key)
-{
- var i;
- var imageElements = document.getElementsByName("dcImage");
- for(i=0; i<imageElements.length; ++i)
- {
- if(imageElements[i].parentElement == key)
- {
- if(imageElements[i].src == downloadImage.src)
- imageElements[i].src = downloadHoverImage.src;
- else
- imageElements[i].src = downloadImage.src;
- }
- }
-}
-
-function ViewSampleSource(name)
-{
- // variables
- var wConfig;
- var oSelectBox = document.all.item(name);
- var url;
- var sIndex;
-
- // Get the selectedIndex
- sIndex = oSelectBox.selectedIndex;
-
- if (sIndex >= 0)
- {
- // Get the URL to the file
- url = oSelectBox.options[sIndex].value;
-
- // Set the configuration
- wConfig += 'directories=0,';
- wConfig += 'location=0,';
- wConfig += 'menubar=0,';
- wConfig += 'resizable=1,';
- wConfig += 'scrollbars=1,';
- wConfig += 'status=0,';
- wConfig += 'toolbar=0';
-
- // Launch the window
- window.open(url, 'ViewSampleSource', wConfig);
- }
+
+function closeMe()
+{
+ window.close();
+}
+
+function ChangeViewCodeIcon(key)
+{
+ var i;
+ var imageElements = document.getElementsByName("vcImage");
+ for(i=0; i<imageElements.length; ++i)
+ {
+ if(imageElements[i].parentElement == key)
+ {
+ if(imageElements[i].src == viewImage.src)
+ imageElements[i].src = viewHoverImage.src;
+ else
+ imageElements[i].src = viewImage.src;
+ }
+ }
+}
+
+function ChangeDownloadCodeIcon(key)
+{
+ var i;
+ var imageElements = document.getElementsByName("dcImage");
+ for(i=0; i<imageElements.length; ++i)
+ {
+ if(imageElements[i].parentElement == key)
+ {
+ if(imageElements[i].src == downloadImage.src)
+ imageElements[i].src = downloadHoverImage.src;
+ else
+ imageElements[i].src = downloadImage.src;
+ }
+ }
+}
+
+function ViewSampleSource(name)
+{
+ // variables
+ var wConfig;
+ var oSelectBox = document.all.item(name);
+ var url;
+ var sIndex;
+
+ // Get the selectedIndex
+ sIndex = oSelectBox.selectedIndex;
+
+ if (sIndex >= 0)
+ {
+ // Get the URL to the file
+ url = oSelectBox.options[sIndex].value;
+
+ // Set the configuration
+ wConfig += 'directories=0,';
+ wConfig += 'location=0,';
+ wConfig += 'menubar=0,';
+ wConfig += 'resizable=1,';
+ wConfig += 'scrollbars=1,';
+ wConfig += 'status=0,';
+ wConfig += 'toolbar=0';
+
+ // Launch the window
+ window.open(url, 'ViewSampleSource', wConfig);
+ }
} \ No newline at end of file