Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/candy-chat/candy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weibel <michael.weibel@gmail.com>2015-01-08 00:25:16 +0300
committerMichael Weibel <michael.weibel@gmail.com>2015-01-08 00:25:16 +0300
commitfd02803e95fa3eff7c0dd0d56b494d9e77f46f78 (patch)
treeae4694ef2a3bf8cdf92d3e6351a92252e0bff12a
parente59479320e5362c892d0b54f3958a2a7a24e51df (diff)
HTTPS-able - Fix #330
-rw-r--r--index.html24
-rw-r--r--public/application.js9
2 files changed, 17 insertions, 16 deletions
diff --git a/index.html b/index.html
index 7a61406..13fea07 100644
--- a/index.html
+++ b/index.html
@@ -113,7 +113,7 @@
</p>
<h3>Setup</h3>
<p>
- <a href="http://github.com/candy-chat/candy/tarball/master" class="download-arrow">Download Candy</a> and extract it in your web directory.<br />
+ <a href="https://github.com/candy-chat/candy/tarball/master" class="download-arrow">Download Candy</a> and extract it in your web directory.<br />
</p>
<h4>Getting Started</h4>
<p>
@@ -269,10 +269,10 @@ RewriteRule http-bind/ http://yourhost.com:5280/http-bind/ [P]</code>
<h3>Getting Help</h3>
<ul>
<li>
- Check out the official <a href="http://github.com/candy-chat/candy/wiki">wiki pages</a> and <a href="http://github.com/candy-chat/candy/issues">issue tracker</a> on GitHub.
+ Check out the official <a href="https://github.com/candy-chat/candy/wiki">wiki pages</a> and <a href="http://github.com/candy-chat/candy/issues">issue tracker</a> on GitHub.
</li>
<li>
- There's also a <a href="http://groups.google.com/group/candy-chat">mailing list</a> on Google Groups.
+ There's also a <a href="https://groups.google.com/group/candy-chat">mailing list</a> on Google Groups.
</li>
</p>
<h3><mark>Contributing</mark></h3>
@@ -287,7 +287,7 @@ RewriteRule http-bind/ http://yourhost.com:5280/http-bind/ [P]</code>
<strong>Extend it:</strong> <a href="#customization">Write plugins</a> to make Candy more awesome.
</li>
<li>
- <strong>Give us feedback:</strong> Tell us what you like about Candy and what you don't by <a href="http://groups.google.com/group/candy-chat">dropping an email</a>.
+ <strong>Give us feedback:</strong> Tell us what you like about Candy and what you don't by <a href="https://groups.google.com/group/candy-chat">dropping an email</a>.
</li>
</ul>
</section>
@@ -299,10 +299,10 @@ RewriteRule http-bind/ http://yourhost.com:5280/http-bind/ [P]</code>
</p>
<h3>Plugins</h3>
<p>
- There's an <mark>official plugin repository</mark> called <a href="http://github.com/candy-chat/candy-plugins">candy-plugins</a>. We would like to see the number of plugins grow. Just fork it, write your own plugin and push it back into the main respository.
+ There's an <mark>official plugin repository</mark> called <a href="https://github.com/candy-chat/candy-plugins">candy-plugins</a>. We would like to see the number of plugins grow. Just fork it, write your own plugin and push it back into the main respository.
</p>
<p>
- <a href="http://github.com/candy-chat/candy-plugins/tarball/master" class="download-arrow">Download Candy Plugins</a> and extract it in your web directory.
+ <a href="https://github.com/candy-chat/candy-plugins/tarball/master" class="download-arrow">Download Candy Plugins</a> and extract it in your web directory.
</p>
<h4>The <i>Colors</i> Plugin &mdash; An Example</h4>
<p>
@@ -336,29 +336,29 @@ $(Candy).on('candy:view.message.before-show', function(evt, args) {
args.message = args.message.replace(/jappix/gi, '*censored*'); // censor 'jappix' in chat messages
});</code>
<p>
- <a href="http://candy-chat.github.io/candy/docs/index/Events.html">Click here to see all available event hooks.</a>
+ <a href="https://candy-chat.github.io/candy/docs/index/Events.html">Click here to see all available event hooks.</a>
</p>
</section>
<section id="api">
<h2>API Documentation</h2>
<p>
- <a href="http://candy-chat.github.io/candy/docs/">The API documentation of the latest version can be found here.</a>
+ <a href="https://candy-chat.github.io/candy/docs/">The API documentation of the latest version can be found here.</a>
</p>
</section>
<section id="underthehood">
<h2>Under The Hood</h2>
<p>
- Candy is built with JavaScript using long poll AJAX requests to emulate bidirectional-streams between client and server following the draft standard <a href="http://xmpp.org/extensions/xep-0124.html">XEP-0124</a> of the XMPP Standards Foundation. By using this standard there are no additional requirements on client-side but having a web browser installed.
+ Candy is built with JavaScript using long poll AJAX requests to emulate bidirectional-streams between client and server following the draft standard <a href="https://xmpp.org/extensions/xep-0124.html">XEP-0124</a> of the XMPP Standards Foundation. By using this standard there are no additional requirements on client-side but having a web browser installed.
</p>
<h3>3rd Party Libraries</h3>
<ul>
<li>
- <a href="http://strophe.im/strophejs/">Strophe.js</a> <small>an XMPP library for JavaScript</small>
+ <a href="https://strophe.im/strophejs/">Strophe.js</a> <small>an XMPP library for JavaScript</small>
</li>
<li>
- <a href="http://jquery.org">jQuery</a> <small>The Write Less, Do More, JavaScript Library</small>
+ <a href="https://jquery.org">jQuery</a> <small>The Write Less, Do More, JavaScript Library</small>
</li>
<li>
<a href="https://github.com/janl/mustache.js">mustache.js</a> <small>Logic-less templates with JavaScript</small>
@@ -380,7 +380,7 @@ $(Candy).on('candy:view.message.before-show', function(evt, args) {
</section>
</article>
- <a href="http://github.com/candy-chat/candy" onclick="_gaq.push(['_trackEvent', 'GitHub', 'Ribbon']);"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a>
+ <a href="https://github.com/candy-chat/candy" onclick="_gaq.push(['_trackEvent', 'GitHub', 'Ribbon']);"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub"></a>
</body>
</html>
diff --git a/public/application.js b/public/application.js
index c17f41a..ac57cb7 100644
--- a/public/application.js
+++ b/public/application.js
@@ -1,5 +1,5 @@
function showArrow(button) {
-
+
}
$(document).ready(function() {
@@ -15,7 +15,8 @@ $(document).ready(function() {
}
} else {
$('html,body').stop().animate({'scrollTop': Math.floor(showcase.offset().top) + 1});
- showcase.html('<iframe src="http://dev.openflex.net/candy" scrolling="no" frameborder="0"></iframe>');
+ var protocol = 'https:' == document.location.protocol ? 'http' : 'https';
+ showcase.html('<iframe src="' + protocol + '://dev.openflex.net/candy" scrolling="no" frameborder="0"></iframe>');
showcase.addClass('demomode');
$(this).text('ONLINE').addClass('demomode');
$('#demoarrow').stop(true, true).fadeIn();
@@ -23,5 +24,5 @@ $(document).ready(function() {
_gaq.push(['_trackEvent', 'Demo', 'Start']);
}
}
- });
-}); \ No newline at end of file
+ });
+});