diff --git a/slingit/lib/jquery/jquery-1.9.1.min.js b/lib/jquery/jquery-1.9.1.min.js similarity index 100% rename from slingit/lib/jquery/jquery-1.9.1.min.js rename to lib/jquery/jquery-1.9.1.min.js diff --git a/lib/system b/lib/system new file mode 160000 index 0000000..0011909 --- /dev/null +++ b/lib/system @@ -0,0 +1 @@ +Subproject commit 001190934d1be857c2aa174619f05e4ba1e11c8a diff --git a/lib/webtorrent b/lib/webtorrent new file mode 160000 index 0000000..1dc0921 --- /dev/null +++ b/lib/webtorrent @@ -0,0 +1 @@ +Subproject commit 1dc0921d55f0015fa80e141e0af1c04e962ad65a diff --git a/slingit/lib/jquery.countdown/Makefile b/slingit/lib/jquery.countdown/Makefile deleted file mode 100644 index 2d98020..0000000 --- a/slingit/lib/jquery.countdown/Makefile +++ /dev/null @@ -1,12 +0,0 @@ -dist: all - @echo Done - -all: - @echo Compiling coffee script - coffee -c -o ./ coffee/*.coffee - -watch: - @echo Watch coffee script files - coffee -w -o ./ coffee/*.coffee - -.PHONY: dist all watch \ No newline at end of file diff --git a/slingit/lib/jquery.countdown/Readme.md b/slingit/lib/jquery.countdown/Readme.md deleted file mode 100644 index 4624487..0000000 --- a/slingit/lib/jquery.countdown/Readme.md +++ /dev/null @@ -1,95 +0,0 @@ -# countdown - -countdown is a jQuery plugin to render countdowns. Instead of unicorns this plugin does not have any magic, but if you like countdowns to be rendered the way you want, this plugin might become your best friend. - -## Uber simple setup - -To use the countdown plugin you need to load the current version of jQuery (testet with 1.7.2) and the javascript file of the plugin. -Just add the following lines to the `head` of your website: - - - - -Then you have to initialize the plugin with your desired configuration: - - - -Yep, it's easy like that! Enjoy the time you saved! - -## Options - -You can pass a set of these options to set a custom behaviour and look for the plugin. - - - - - - - - - - - - - - - - - - - - - - - - - -
Property (Type)DefaultDescription
datenew Date("June 7, 2087 15:03:25")The end time of your fancy countdown. Pass either a date object or a string/integer that will be used to create a new Date object. Here you can find all accepted formats of this value.
refresh1000Refresh rate in milliseconds or false to avoid automatic updates.
renderWith the render option you can set a function to change the output of the plugin. This function is called in the scope of the plugin, so you can access the leadingZeros method to format numbers as well as public variables and methods. A literal object will be passed to this function as an argument, containing the remaining time parts (years, days, hours, min, sec).
onEndCallback function that is called when the end date is reached
- - -## Public plugin methods - - - - - - - - - - - - - - - - - - - - - - - - - - -
method(arguments)Description
leadingZeros(number, [length = 2])Add leading zeros to a number.
update(newDate)Update the end time. The possible formats of the argument newDate are the same as described in the date-option above.
render()Call the render method. This might be usefull if you set refresh to false.
stop()Stops the refresh loop.
start([refreshRate])Start the refresh loop. If you set a refresh rate in the options you can overwrite it with the argument refreshRate. If you don't pass an argument, the old value or the default value of 1 sec will be used.
- -## Changelog - -### Version 1.0.1 - May 01, 2013 -* Added callback function when the end date is reached - -### Version 1.0.0 - Aug 05, 2012 -* Initial release - -## License - -`countdown` is dual licensed under the [MIT](http://www.opensource.org/licenses/mit-license.php) and [GPL-3.0](http://opensource.org/licenses/GPL-3.0) licenses. diff --git a/slingit/lib/jquery.countdown/coffee/jquery.countdown.coffee b/slingit/lib/jquery.countdown/coffee/jquery.countdown.coffee deleted file mode 100644 index effae4d..0000000 --- a/slingit/lib/jquery.countdown/coffee/jquery.countdown.coffee +++ /dev/null @@ -1,110 +0,0 @@ -### -countdown is a simple jquery plugin for countdowns - -Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) -and GPL-3.0 (http://opensource.org/licenses/GPL-3.0) licenses. - -@source: http://github.com/rendro/countdown/ -@autor: Robert Fleischmann -@version: 1.0.1 -### - -(($) -> - $.countdown = (el, options) -> - - @el = el - @$el = $ el - @$el.data "countdown", @ - - @init = => - @options = $.extend {}, $.countdown.defaultOptions, options - if @options.refresh - @interval = setInterval => - @render() - , @options.refresh - @render() - @ - - getDateData = (endDate) => - endDate = Date.parse if $.isPlainObject @options.date then @options.date else new Date @options.date - diff = (endDate - Date.parse(new Date)) / 1000 - - if diff <= 0 - diff = 0 - @stop() if @interval - @options.onEnd.apply @ - - dateData = { - years: 0 - days: 0 - hours: 0 - min: 0 - sec: 0 - millisec: 0 - } - - if diff >= (365.25 * 86400) - dateData.years = Math.floor diff / (365.25 * 86400) - diff -= dateData.years * 365.25 * 86400 - - if diff >= 86400 - dateData.days = Math.floor diff / 86400 - diff -= dateData.days * 86400 - - if diff >= 3600 - dateData.hours = Math.floor diff / 3600 - diff -= dateData.hours * 3600 - - if diff >= 60 - dateData.min = Math.floor diff / 60 - diff -= dateData.min * 60 - - dateData.sec = diff - - dateData - - @leadingZeros = (num, length = 2) => - num = String num - num = "0#{num}" while num.length < length - num - - @update = (newDate) => - @options.date = newDate - @ - - @render = => - @options.render.apply @, [getDateData @options.date] - @ - - @stop = => - clearInterval @interval if @interval - @interval = null - @ - - @start = (refresh = @options.refresh or $.countdown.defaultOptions.refresh) => - clearInterval @interval if @interval - @render() - @options.refresh = refresh - @interval = setInterval => - @render() - , @options.refresh - @ - - @init() - - $.countdown.defaultOptions = - date: "June 7, 2087 15:03:25" - refresh: 1000 - onEnd: $.noop - render: (date) -> - $(@el).html "#{date.years} years, #{date.days} days, #{@leadingZeros date.hours} hours, #{@leadingZeros date.min} min and #{@leadingZeros date.sec} sec" - - $.fn.countdown = (options) -> - $.each @, (i, el) -> - $el = ($ el) - - unless $el.data 'countdown' - $el.data 'countdown', new $.countdown el, options - - undefined -)(jQuery) diff --git a/slingit/lib/jquery.countdown/examples/index.html b/slingit/lib/jquery.countdown/examples/index.html deleted file mode 100644 index f940f00..0000000 --- a/slingit/lib/jquery.countdown/examples/index.html +++ /dev/null @@ -1,54 +0,0 @@ - - - - - Countdown - - - - - - - - -
-

COUNTDOWN

- -

Simple text countdown

-
- -

Styled output

-
- -

Countdown with callback

-

Click on the green box to reset the counter to 10 sec.

-
-
- - diff --git a/slingit/lib/jquery.countdown/examples/style.css b/slingit/lib/jquery.countdown/examples/style.css deleted file mode 100644 index 5a93e09..0000000 --- a/slingit/lib/jquery.countdown/examples/style.css +++ /dev/null @@ -1,72 +0,0 @@ -body { - font: 13px/1.4 'Helvetica Neue', 'Helvetica','Arial', sans-serif; - color: #333; -} -.container { - width: 520px; - margin: auto; -} -h1 { - border-bottom: 1px solid #d9d9d9; -} -h2{ - position: relative;; - font-size: 16px; - font-weight: normal; - text-transform: uppercase; -} -h2:before{ - content: '\2192'; - position: absolute; - left: -20px; - font-size: 0.9em; -} -a { - color: #be2221; - text-decoration: none; -} - -.callback, -.simple { - font-size: 20px; - background: #27ae60; - padding: 0.5em 0.7em; - color: #ecf0f1; - margin-bottom: 50px; - -webkit-transition: background 0.5s ease-out; - transition: background 0.5s ease-out; -} -.callback{ - cursor: pointer; -} -.ended { - background: #c0392b; -} -.styled{ - margin-bottom: 50px; -} -.styled div { - display: inline-block; - margin-left: 10px; - font-size: 30px; - font-weight: 100; - line-height: 1; - text-align: right; -} -/* IE7 inline-block hack */ -*+html .styled div{ - display: inline; - zoom: 1; -} -.styled div:first-child { - margin-left: 0; -} -.styled div span { - display: block; - border-top: 1px solid #cecece; - padding-top: 3px; - font-size: 12px; - font-weight: normal; - text-transform: uppercase; - text-align: left; -} diff --git a/slingit/lib/jquery.countdown/jquery.countdown.js b/slingit/lib/jquery.countdown/jquery.countdown.js deleted file mode 100644 index 75a03f8..0000000 --- a/slingit/lib/jquery.countdown/jquery.countdown.js +++ /dev/null @@ -1,133 +0,0 @@ -// Generated by CoffeeScript 1.4.0 - -/* -countdown is a simple jquery plugin for countdowns - -Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) -and GPL-3.0 (http://opensource.org/licenses/GPL-3.0) licenses. - -@source: http://github.com/rendro/countdown/ -@autor: Robert Fleischmann -@version: 1.0.1 -*/ - - -(function() { - - (function($) { - $.countdown = function(el, options) { - var getDateData, - _this = this; - this.el = el; - this.$el = $(el); - this.$el.data("countdown", this); - this.init = function() { - _this.options = $.extend({}, $.countdown.defaultOptions, options); - if (_this.options.refresh) { - _this.interval = setInterval(function() { - return _this.render(); - }, _this.options.refresh); - } - _this.render(); - return _this; - }; - getDateData = function(endDate) { - var dateData, diff; - endDate = Date.parse($.isPlainObject(_this.options.date) ? _this.options.date : new Date(_this.options.date)); - diff = (endDate - Date.parse(new Date)) / 1000; - if (diff <= 0) { - diff = 0; - if (_this.interval) { - _this.stop(); - } - _this.options.onEnd.apply(_this); - } - dateData = { - years: 0, - days: 0, - hours: 0, - min: 0, - sec: 0, - millisec: 0 - }; - if (diff >= (365.25 * 86400)) { - dateData.years = Math.floor(diff / (365.25 * 86400)); - diff -= dateData.years * 365.25 * 86400; - } - if (diff >= 86400) { - dateData.days = Math.floor(diff / 86400); - diff -= dateData.days * 86400; - } - if (diff >= 3600) { - dateData.hours = Math.floor(diff / 3600); - diff -= dateData.hours * 3600; - } - if (diff >= 60) { - dateData.min = Math.floor(diff / 60); - diff -= dateData.min * 60; - } - dateData.sec = diff; - return dateData; - }; - this.leadingZeros = function(num, length) { - if (length == null) { - length = 2; - } - num = String(num); - while (num.length < length) { - num = "0" + num; - } - return num; - }; - this.update = function(newDate) { - _this.options.date = newDate; - return _this; - }; - this.render = function() { - _this.options.render.apply(_this, [getDateData(_this.options.date)]); - return _this; - }; - this.stop = function() { - if (_this.interval) { - clearInterval(_this.interval); - } - _this.interval = null; - return _this; - }; - this.start = function(refresh) { - if (refresh == null) { - refresh = _this.options.refresh || $.countdown.defaultOptions.refresh; - } - if (_this.interval) { - clearInterval(_this.interval); - } - _this.render(); - _this.options.refresh = refresh; - _this.interval = setInterval(function() { - return _this.render(); - }, _this.options.refresh); - return _this; - }; - return this.init(); - }; - $.countdown.defaultOptions = { - date: "June 7, 2087 15:03:25", - refresh: 1000, - onEnd: $.noop, - render: function(date) { - return $(this.el).html("" + date.years + " years, " + date.days + " days, " + (this.leadingZeros(date.hours)) + " hours, " + (this.leadingZeros(date.min)) + " min and " + (this.leadingZeros(date.sec)) + " sec"); - } - }; - $.fn.countdown = function(options) { - return $.each(this, function(i, el) { - var $el; - $el = $(el); - if (!$el.data('countdown')) { - return $el.data('countdown', new $.countdown(el, options)); - } - }); - }; - return void 0; - })(jQuery); - -}).call(this);