|
@@ -15,7 +15,8 @@
|
|
<link type="text/css" rel="stylesheet" media="screen" href="https://cdn.conversejs.org/3.1.0/css/converse.min.css" />
|
|
<link type="text/css" rel="stylesheet" media="screen" href="https://cdn.conversejs.org/3.1.0/css/converse.min.css" />
|
|
<script type="text/javascript" src="analytics.js"></script>
|
|
<script type="text/javascript" src="analytics.js"></script>
|
|
<noscript><p><img src="//stats.opkode.com/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
|
|
<noscript><p><img src="//stats.opkode.com/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
|
|
- <![if gte IE 9]>
|
|
|
|
|
|
+ <script src="src/website.js"></script>
|
|
|
|
+ <![if gte IE 11]>
|
|
<script src="https://cdn.conversejs.org/3.1.0/dist/converse.min.js"></script>
|
|
<script src="https://cdn.conversejs.org/3.1.0/dist/converse.min.js"></script>
|
|
<![endif]>
|
|
<![endif]>
|
|
</head>
|
|
</head>
|
|
@@ -223,37 +224,6 @@
|
|
</body>
|
|
</body>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
- (function () {
|
|
|
|
- /* XXX: This function initializes jquery.easing for the https://conversejs.org
|
|
|
|
- * website. This code is only useful in the context of the converse.js
|
|
|
|
- * website and converse.js itself is NOT dependent on it.
|
|
|
|
- */
|
|
|
|
- var $ = converse.env.jQuery;
|
|
|
|
- $.extend( $.easing, {
|
|
|
|
- easeInOutExpo: function (x, t, b, c, d) {
|
|
|
|
- if (t==0) return b;
|
|
|
|
- if (t==d) return b+c;
|
|
|
|
- if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
|
|
|
|
- return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
|
|
|
|
- },
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- $(window).scroll(function() {
|
|
|
|
- if ($(".navbar").offset().top > 50) {
|
|
|
|
- $(".navbar-fixed-top").addClass("top-nav-collapse");
|
|
|
|
- } else {
|
|
|
|
- $(".navbar-fixed-top").removeClass("top-nav-collapse");
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- //jQuery for page scrolling feature - requires jQuery Easing plugin
|
|
|
|
- $('.page-scroll a').bind('click', function(event) {
|
|
|
|
- var $anchor = $(this);
|
|
|
|
- $('html, body').stop().animate({
|
|
|
|
- scrollTop: $($anchor.attr('href')).offset().top
|
|
|
|
- }, 700, 'easeInOutExpo');
|
|
|
|
- event.preventDefault();
|
|
|
|
- });
|
|
|
|
- })();
|
|
|
|
converse.initialize({
|
|
converse.initialize({
|
|
// Please use this connection manager only for testing purposes
|
|
// Please use this connection manager only for testing purposes
|
|
bosh_service_url: 'https://conversejs.org/http-bind/',
|
|
bosh_service_url: 'https://conversejs.org/http-bind/',
|