Browse Source

revisions from working on quirky platform

Former-commit-id: dcfdcbe26368f20dd389b085988f6f79dc0bb466
Former-commit-id: 8e1664ba1b963444ba456f0961e56ff357c89d36
beta
Jack Lukic 12 years ago
parent
commit
3a31239ca2
  1. 2
      build/minified/collections/form.min.css
  2. 2
      build/minified/collections/grid.min.css
  3. 2
      build/minified/collections/menu.min.css
  4. 2
      build/minified/elements/button.min.css
  5. 2
      build/minified/elements/label.min.css
  6. 2
      build/minified/elements/loader.min.css
  7. 38
      build/minified/modules/dropdown.js
  8. 2
      build/minified/modules/dropdown.min.js
  9. 37
      build/minified/modules/modal.js
  10. 2
      build/minified/modules/modal.min.css
  11. 2
      build/minified/modules/modal.min.js
  12. 148
      build/minified/modules/tab.js
  13. 2
      build/minified/modules/tab.min.css
  14. 2
      build/minified/modules/tab.min.js
  15. 2
      build/minified/modules/video.min.js
  16. 2
      build/minified/views/feed.min.css
  17. 2
      build/minified/views/item.min.css
  18. 38
      build/packaged/modules/dropdown.js
  19. 37
      build/packaged/modules/modal.js
  20. 148
      build/packaged/modules/tab.js
  21. 2
      build/packaged/semantic.min.css.REMOVED.git-id
  22. 2
      build/packaged/semantic.min.js.REMOVED.git-id
  23. 1
      build/uncompressed/collections/form.css
  24. 2
      build/uncompressed/collections/grid.css
  25. 1
      build/uncompressed/collections/menu.css
  26. 10
      build/uncompressed/elements/button.css
  27. 2
      build/uncompressed/elements/label.css
  28. 6
      build/uncompressed/elements/loader.css
  29. 38
      build/uncompressed/modules/dropdown.js
  30. 3
      build/uncompressed/modules/modal.css
  31. 37
      build/uncompressed/modules/modal.js
  32. 3
      build/uncompressed/modules/tab.css
  33. 148
      build/uncompressed/modules/tab.js
  34. 3
      build/uncompressed/views/feed.css
  35. 4
      build/uncompressed/views/item.css
  36. 1
      node/src/files/components/semantic/collections/form.css
  37. 2
      node/src/files/components/semantic/collections/grid.css
  38. 1
      node/src/files/components/semantic/collections/menu.css
  39. 10
      node/src/files/components/semantic/elements/button.css
  40. 2
      node/src/files/components/semantic/elements/label.css
  41. 6
      node/src/files/components/semantic/elements/loader.css
  42. 38
      node/src/files/components/semantic/modules/dropdown.js
  43. 3
      node/src/files/components/semantic/modules/modal.css
  44. 37
      node/src/files/components/semantic/modules/modal.js
  45. 3
      node/src/files/components/semantic/modules/tab.css
  46. 148
      node/src/files/components/semantic/modules/tab.js
  47. 3
      node/src/files/components/semantic/views/feed.css
  48. 4
      node/src/files/components/semantic/views/item.css
  49. BIN
      node/src/files/icons/icons-sketchy.woff
  50. 8
      node/src/files/overrides/idea.card.css
  51. 1
      src/collections/form.less
  52. 2
      src/collections/grid.less
  53. 2
      src/collections/menu.less
  54. 18
      src/elements/button.less
  55. 2
      src/elements/label.less
  56. 7
      src/elements/loader.less
  57. 14
      src/modules/dimmer.less
  58. 38
      src/modules/dropdown.js
  59. 37
      src/modules/modal.js
  60. 4
      src/modules/modal.less
  61. 148
      src/modules/tab.js
  62. 3
      src/modules/tab.less
  63. 3
      src/views/feed.less
  64. 4
      src/views/item.less

2
build/minified/collections/form.min.css

File diff suppressed because one or more lines are too long

2
build/minified/collections/grid.min.css

File diff suppressed because one or more lines are too long

2
build/minified/collections/menu.min.css

File diff suppressed because one or more lines are too long

2
build/minified/elements/button.min.css

File diff suppressed because one or more lines are too long

2
build/minified/elements/label.min.css

File diff suppressed because one or more lines are too long

2
build/minified/elements/loader.min.css

@ -1 +1 @@
.ui.loader{display:none;position:absolute;top:50%;left:50%;margin:-16px 0 0 -16px;z-index:1000}.ui.dimmer .loader{display:block}.ui.loader.text{width:auto!important;height:auto!important;text-align:center;font-style:normal;margin-top:-28px;min-width:32px;padding-top:40px;font-size:14px}.ui.loader.text.mini{margin-top:-16px;min-width:16px;padding-top:20px;font-size:11px}.ui.loader.text.small{margin-top:-23px;min-width:24px;padding-top:32px;font-size:13px}.ui.loader.text.large{margin-top:-46px;min-width:64px;padding-top:80px;font-size:16px}.ui.loader.active,.ui.loader.visible{display:block}.ui.loader.disabled,.ui.loader.hidden{display:none}.ui.dimmer .ui.text.loader,.ui.inverted.text.loader{color:rgba(0,0,0,.8)}.ui.dimmer .mini.ui.loader,.ui.inverted .mini.ui.loader{background-image:url(../images/loader-mini-inverted.gif)}.ui.dimmer .small.ui.loader,.ui.inverted .small.ui.loader{background-image:url(../images/loader-small-inverted.gif)}.ui.dimmer .ui.loader,.ui.inverted.loader{background-image:url(../images/loader-medium-inverted.gif)}.ui.dimmer .large.ui.loader,.ui.inverted .large.ui.loader{background-image:url(../images/loader-large-inverted.gif)}.ui.inverted.dimmer .ui.loader.mini,.ui.loader.mini{width:16px;height:16px;background-image:url(../images/loader-mini.gif);margin:-8px 0 0 -8px}.ui.inverted.dimmer .ui.loader.small,.ui.loader.small{width:24px;height:24px;background-image:url(../images/loader-small.gif);margin:-12px 0 0 -12px}.ui.inverted.dimmer .ui.loader,.ui.loader{width:32px;height:32px;background:url(../images/loader-medium.gif) no-repeat;background-position:48% 0}.ui.inverted.dimmer .ui.loader.large,.ui.loader.large{width:64px;height:64px;background-image:url(../images/loader-large.gif);margin:-32px 0 0 -32px}.ui.inline.loader{display:inline-block;vertical-align:middle;margin:0}
.ui.loader{display:none;position:absolute;top:50%;left:50%;margin:-16px 0 0 -16px;z-index:1000}.ui.dimmer .loader{display:block}.ui.loader.text{width:auto!important;height:auto!important;text-align:center;font-style:normal;margin-top:-28px;min-width:32px;padding-top:40px;font-size:14px}.ui.loader.text.mini{margin-top:-16px;min-width:16px;padding-top:20px;font-size:11px}.ui.loader.text.small{margin-top:-23px;min-width:24px;padding-top:32px;font-size:13px}.ui.loader.text.large{margin-top:-46px;min-width:64px;padding-top:80px;font-size:16px}.ui.loader.active,.ui.loader.visible{display:block}.ui.loader.disabled,.ui.loader.hidden{display:none}.ui.dimmer .ui.text.loader,.ui.inverted.text.loader{color:rgba(0,0,0,.8)}.ui.dimmer .mini.ui.loader,.ui.inverted .mini.ui.loader{background-image:url(../images/loader-mini-inverted.gif)}.ui.dimmer .small.ui.loader,.ui.inverted .small.ui.loader{background-image:url(../images/loader-small-inverted.gif)}.ui.dimmer .ui.loader,.ui.inverted.loader{background-image:url(../images/loader-medium-inverted.gif)}.ui.dimmer .large.ui.loader,.ui.inverted .large.ui.loader{background-image:url(../images/loader-large-inverted.gif)}.ui.inverted.dimmer .ui.loader.mini,.ui.loader.mini{width:16px;height:16px;background-image:url(../images/loader-mini.gif);margin:-8px 0 0 -8px}.ui.inverted.dimmer .ui.loader.small,.ui.loader.small{width:24px;height:24px;background-image:url(../images/loader-small.gif);margin:-12px 0 0 -12px}.ui.inverted.dimmer .ui.loader,.ui.loader{width:32px;height:32px;background:url(../images/loader-medium.gif) no-repeat;background-position:48% 0}.ui.inverted.dimmer .ui.loader.large,.ui.loader.large{width:64px;height:64px;background-image:url(../images/loader-large.gif);margin:-32px 0 0 -32px}.ui.inline.loader{position:static;vertical-align:middle;margin:0}.ui.inline.loader.active,.ui.inline.loader.visible{display:inline-block}

38
build/minified/modules/dropdown.js

@ -400,7 +400,6 @@ $.fn.dropdown = function(parameters) {
},
setting: function(name, value) {
module.debug('Changing setting', name, value);
if(value !== undefined) {
if( $.isPlainObject(name) ) {
$.extend(true, settings, name);
@ -414,7 +413,6 @@ $.fn.dropdown = function(parameters) {
}
},
internal: function(name, value) {
module.debug('Changing internal', name, value);
if(value !== undefined) {
if( $.isPlainObject(name) ) {
$.extend(true, module, name);
@ -427,24 +425,29 @@ $.fn.dropdown = function(parameters) {
return module[name];
}
},
verbose: function() {
if(settings.verbose && settings.debug) {
module.performance.log(arguments[0]);
module.verbose = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
}
},
debug: function() {
if(settings.debug) {
module.performance.log(arguments[0]);
module.debug = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
if(settings.performance) {
module.performance.log(arguments);
}
else {
module.debug = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
}
}
},
error: function() {
if(console.log !== undefined) {
module.error = Function.prototype.bind.call(console.error, console, settings.moduleName + ':');
verbose: function() {
if(settings.verbose && settings.debug) {
if(settings.performance) {
module.performance.log(arguments);
}
else {
module.verbose = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
}
}
},
error: function() {
module.error = Function.prototype.bind.call(console.log, console, settings.moduleName + ':');
},
performance: {
log: function(message) {
var
@ -508,14 +511,13 @@ $.fn.dropdown = function(parameters) {
$.each(query, function(depth, value) {
if( $.isPlainObject( instance[value] ) && (depth != maxDepth) ) {
instance = instance[value];
return true;
}
else if( instance[value] !== undefined ) {
found = instance[value];
return true;
}
module.error(errors.method);
return false;
else {
module.error(error.method);
}
});
}
if ( $.isFunction( found ) ) {

2
build/minified/modules/dropdown.min.js

File diff suppressed because one or more lines are too long

37
build/minified/modules/modal.js

@ -148,22 +148,30 @@
modalType = (cantFit)
? 'absolute'
: 'fixed',
topCentering = (cantFit)
? '0'
: '50%',
offsetTop = (cantFit)
? (windowHeight / 8)
: -( (modalHeight - settings.closeSpacing) / 2),
finalPosition = ($modal.css('position') == 'absolute')
? offsetTop + $(window).prop('pageYOffset')
: offsetTop,
startPosition = finalPosition + settings.animationOffset
topCentering,
offsetTop,
finalPosition,
startPosition
;
$modal
.addClass(modalType)
;
topCentering = (cantFit)
? '0'
: '50%'
;
offsetTop = (cantFit)
? (windowHeight / 8)
: -( (modalHeight - settings.closeSpacing) / 2)
;
finalPosition = ($modal.css('position') == 'absolute')
? offsetTop + $(window).prop('pageYOffset')
: offsetTop
;
startPosition = finalPosition + settings.animationOffset;
// set top margin as offset
if($.fn.popIn !== undefined) {
$modal
.addClass(modalType)
.css({
display : 'block',
opacity : 0,
@ -175,7 +183,6 @@
}
else {
$modal
.addClass(modalType)
.css({
display : 'block',
opacity : 0,
@ -194,12 +201,10 @@
.hide()
;
}
console.log('zzz');
$.dimScreen({
context : settings.context,
duration : 0,
dim : function() {
console.log('aaa');
$(document)
.on('keyup.' + namespace, function(event) {
var
@ -214,8 +219,6 @@
}
})
;
console.log($closeButton);
console.log('attaching click');
$closeButton
.one('click', function() {
$modal.modal('hide');

2
build/minified/modules/modal.min.css

@ -1 +1 @@
.ui.modal{display:none;position:absolute;z-index:1001;top:50%;left:50%;margin-left:-400px;width:800px;-webkit-box-shadow:5px 5px 15px rgba(0,0,0,.8);-moz-box-shadow:5px 5px 15px rgba(0,0,0,.8);box-shadow:5px 5px 15px rgba(0,0,0,.8);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.ui.page.modal{position:fixed}.ui.modal>.close{cursor:pointer;position:absolute;font-size:1.25em;color:#FFF;top:-1.75em;right:-1.75em;opacity:.8}.ui.modal>.close:hover{opacity:1}.ui.modal>.header{background-color:#442359;padding:1em 2em;-webkit-border-radius:.325em .325em 0 0;-moz-border-radius:.325em .325em 0 0;border-radius:.325em .325em 0 0}.ui.modal>.header h2{margin:0;font-size:1.5em;font-weight:700;color:#FFF}.ui.modal>.content{position:relative;overflow:hidden;padding:2em;background-color:#FAFAFA;-webkit-border-radius:0 0 .325em .325em;-moz-border-radius:0 0 .325em .325em;border-radius:0 0 .325em .325em}.ui.modal>.content .left{float:left;width:50%}.ui.modal>.content .right{float:right;width:50%}.ui.modal.static{display:block;position:relative;overflow:hidden;top:0;left:0;border:1px solid #CCC;width:auto;height:auto;margin:0 auto;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;color:#555;z-index:2;-moz-box-shadow:0 0 2px rgba(0,0,0,.2);-webkit-box-shadow:0 0 2px rgba(0,0,0,.2);box-shadow:0 0 2px rgba(0,0,0,.2)}.ui.modal.static>.header,.ui.modal.static>.content{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}
.ui.modal{display:none;position:absolute;z-index:1001;top:50%;left:50%;margin-left:-400px;width:800px;-webkit-box-shadow:5px 5px 15px rgba(0,0,0,.8);-moz-box-shadow:5px 5px 15px rgba(0,0,0,.8);box-shadow:5px 5px 15px rgba(0,0,0,.8);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.ui.page.modal{position:fixed}.ui.modal>.close{cursor:pointer;position:absolute;font-size:1.25em;color:#FFF;top:-1.75em;right:-1.75em;opacity:.8}.ui.modal>.close:hover{opacity:1}.ui.modal>.header{background-color:#442359;padding:1em 2em;-webkit-border-radius:.325em .325em 0 0;-moz-border-radius:.325em .325em 0 0;border-radius:.325em .325em 0 0}.ui.modal>.header h2{margin:0;font-size:1.5em;font-weight:700;color:#FFF}.ui.modal>.content{position:relative;overflow:hidden;padding:2em;background-color:#FAFAFA;-webkit-border-radius:0 0 .325em .325em;-moz-border-radius:0 0 .325em .325em;border-radius:0 0 .325em .325em}.ui.modal>.content .left{float:left;width:50%}.ui.modal>.content .right{float:right;width:50%}.ui.modal.fixed{position:fixed}.ui.modal.static{display:block;position:relative;overflow:hidden;top:0;left:0;border:1px solid #CCC;width:auto;height:auto;margin:0 auto;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;color:#555;z-index:2;-moz-box-shadow:0 0 2px rgba(0,0,0,.2);-webkit-box-shadow:0 0 2px rgba(0,0,0,.2);box-shadow:0 0 2px rgba(0,0,0,.2)}.ui.modal.static>.header,.ui.modal.static>.content{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}

2
build/minified/modules/modal.min.js

@ -1 +1 @@
(function(e,n,t,o){e.dimScreen=function(n){var t="function"==typeof n?e.extend({},e.fn.modal.settings,{dim:n}):e.extend({},e.fn.modal.settings,n),o=e(t.context),i=o.children(t.selector.dimmer),a=i.size()>0,r=i.css("opacity");return a||(i=e("<div/>").attr("id","dimmer").html('<div class="content"></div>'),o.append(i)),r!=t.opacity&&(i.one("click",function(){t.unDim(),e.unDimScreen()}),0===t.duration?(i.css({visibility:"visible"}).find(".content").css({opacity:t.opacity,visibility:"visible"}),t.dim()):i.css({visibility:"visible"}).find(".content").css({opacity:0,visibility:"visible"}).fadeTo(t.duration,t.opacity,t.dim)),this},e.unDimScreen=function(n){var t="function"==typeof n?e.extend({},e.fn.modal.settings,{unDim:n}):e.extend({},e.fn.modal.settings,n),o=e(t.context),i=o.children(t.selector.dimmer),a=i.size()>0;return a&&(t.unDim(),0===t.duration?i.css({visibility:"hidden"}).remove():i.find(".content").fadeTo(t.duration,0,function(){i.remove()})),this},e.fn.modal=function(i){var a,r=e.extend(!0,{},e.fn.modal.settings,i),s=arguments[0],c=[].slice.call(arguments,1);return e(this).each(function(){var i,l=e(this),u=l.find(r.selector.closeButton),d=(e(r.context).find(r.selector.dimmer),e(r.context).children(r.selector.modal)),m=d.not(l),f=l.data("module-"+r.namespace),g="string"==typeof s,p=(r.className,r.namespace);i={initialize:function(){l.on("modalShow."+p,i.show).on("modalHide."+p,i.hide).data("module-"+p,i)},show:function(){var i=l.outerHeight(),a=e(n).height(),s=i>a,c=s?"absolute":"fixed",d=s?"0":"50%",f=s?a/8:-((i-r.closeSpacing)/2),g="absolute"==l.css("position")?f+e(n).prop("pageYOffset"):f,h=g+r.animationOffset;e.fn.popIn!==o?l.addClass(c).css({display:"block",opacity:0,top:d,marginTop:g+"px"}).popIn():l.addClass(c).css({display:"block",opacity:0,top:d,marginTop:h+"px"}).animate({opacity:1,marginTop:g+"px"},r.duration+300,r.easing),m.is(":visible")&&m.filter(":visible").hide(),console.log("zzz"),e.dimScreen({context:r.context,duration:0,dim:function(){console.log("aaa"),e(t).on("keyup."+p,function(e){var n=e.which,t=27;switch(n){case t:l.modal("hide"),e.preventDefault()}}),console.log(u),console.log("attaching click"),u.one("click",function(){l.modal("hide")}),r.dim()},unDim:function(){l.modal("hide"),u.unbind("click")}})},hide:function(){e(t).off("keyup."+p),e.unDimScreen({duration:0,unDim:function(){l.popOut(200),r.unDim()}})},setting:function(e,n){return n===o?r[e]:(r[e]=n,o)},debug:function(){var e=[],n=r.moduleName+": "+arguments[0],t=[].slice.call(arguments,1),o=console.info||console.log||function(){};r.debug&&(e.push(n),o.apply(console,e.concat(t)))},error:function(){var e=[],n=r.moduleName+": "+arguments[0],t=[].slice.call(arguments,1),o=console.warn||console.log||function(){};r.debug&&(e.push(n),e.concat(t),o.apply(console,e.concat(t)))},invoke:function(n,t,a){var s,c;return a=a||[].slice.call(arguments,2),"string"==typeof n&&f!==o&&(n=n.split("."),s=n.length-1,e.each(n,function(n,t){return e.isPlainObject(f[t])&&n!=s?(f=f[t],!0):f[t]!==o?(c=f[t],!0):(i.error(r.errors.method),!1)})),e.isFunction(c)?c.apply(t,a):c}},g?a=i.invoke(s,this,c):i.initialize()}),a!==o?a:this},e.fn.modal.settings={moduleName:"Modal",debug:!1,namespace:"modal",errors:{method:"The method you called is not defined"},dim:function(){},unDim:function(){},hide:function(){},show:function(){},context:"body",opacity:.8,closeSpacing:25,animationOffset:15,duration:400,easing:"easeOutExpo",selector:{dimmer:"#dimmer",modal:".modal",closeButton:".close"}}})(jQuery,window,document);
(function(e,n,t,o){e.dimScreen=function(n){var t="function"==typeof n?e.extend({},e.fn.modal.settings,{dim:n}):e.extend({},e.fn.modal.settings,n),o=e(t.context),i=o.children(t.selector.dimmer),a=i.size()>0,r=i.css("opacity");return a||(i=e("<div/>").attr("id","dimmer").html('<div class="content"></div>'),o.append(i)),r!=t.opacity&&(i.one("click",function(){t.unDim(),e.unDimScreen()}),0===t.duration?(i.css({visibility:"visible"}).find(".content").css({opacity:t.opacity,visibility:"visible"}),t.dim()):i.css({visibility:"visible"}).find(".content").css({opacity:0,visibility:"visible"}).fadeTo(t.duration,t.opacity,t.dim)),this},e.unDimScreen=function(n){var t="function"==typeof n?e.extend({},e.fn.modal.settings,{unDim:n}):e.extend({},e.fn.modal.settings,n),o=e(t.context),i=o.children(t.selector.dimmer),a=i.size()>0;return a&&(t.unDim(),0===t.duration?i.css({visibility:"hidden"}).remove():i.find(".content").fadeTo(t.duration,0,function(){i.remove()})),this},e.fn.modal=function(i){var a,r=e.extend(!0,{},e.fn.modal.settings,i),s=arguments[0],c=[].slice.call(arguments,1);return e(this).each(function(){var i,l=e(this),u=l.find(r.selector.closeButton),d=(e(r.context).find(r.selector.dimmer),e(r.context).children(r.selector.modal)),m=d.not(l),f=l.data("module-"+r.namespace),g="string"==typeof s,p=(r.className,r.namespace);i={initialize:function(){l.on("modalShow."+p,i.show).on("modalHide."+p,i.hide).data("module-"+p,i)},show:function(){var i,a,s,c,d=l.outerHeight(),f=e(n).height(),g=d>f,h=g?"absolute":"fixed";l.addClass(h),i=g?"0":"50%",a=g?f/8:-((d-r.closeSpacing)/2),s="absolute"==l.css("position")?a+e(n).prop("pageYOffset"):a,c=s+r.animationOffset,e.fn.popIn!==o?l.css({display:"block",opacity:0,top:i,marginTop:s+"px"}).popIn():l.css({display:"block",opacity:0,top:i,marginTop:c+"px"}).animate({opacity:1,marginTop:s+"px"},r.duration+300,r.easing),m.is(":visible")&&m.filter(":visible").hide(),e.dimScreen({context:r.context,duration:0,dim:function(){e(t).on("keyup."+p,function(e){var n=e.which,t=27;switch(n){case t:l.modal("hide"),e.preventDefault()}}),u.one("click",function(){l.modal("hide")}),r.dim()},unDim:function(){l.modal("hide"),u.unbind("click")}})},hide:function(){e(t).off("keyup."+p),e.unDimScreen({duration:0,unDim:function(){l.popOut(200),r.unDim()}})},setting:function(e,n){return n===o?r[e]:(r[e]=n,o)},debug:function(){var e=[],n=r.moduleName+": "+arguments[0],t=[].slice.call(arguments,1),o=console.info||console.log||function(){};r.debug&&(e.push(n),o.apply(console,e.concat(t)))},error:function(){var e=[],n=r.moduleName+": "+arguments[0],t=[].slice.call(arguments,1),o=console.warn||console.log||function(){};r.debug&&(e.push(n),e.concat(t),o.apply(console,e.concat(t)))},invoke:function(n,t,a){var s,c;return a=a||[].slice.call(arguments,2),"string"==typeof n&&f!==o&&(n=n.split("."),s=n.length-1,e.each(n,function(n,t){return e.isPlainObject(f[t])&&n!=s?(f=f[t],!0):f[t]!==o?(c=f[t],!0):(i.error(r.errors.method),!1)})),e.isFunction(c)?c.apply(t,a):c}},g?a=i.invoke(s,this,c):i.initialize()}),a!==o?a:this},e.fn.modal.settings={moduleName:"Modal",debug:!1,namespace:"modal",errors:{method:"The method you called is not defined"},dim:function(){},unDim:function(){},hide:function(){},show:function(){},context:"body",opacity:.8,closeSpacing:25,animationOffset:15,duration:400,easing:"easeOutExpo",selector:{dimmer:"#dimmer",modal:".modal",closeButton:".close"}}})(jQuery,window,document);

148
build/minified/modules/tab.js

@ -13,7 +13,7 @@
var
settings = $.extend(true, {}, $.fn.tabNavigation.settings, parameters),
$tabNavigation = $(this),
$module = $(this),
$tabs = $(settings.context).find(settings.selector.tabs),
firstLoad = true,
@ -24,12 +24,17 @@
parameterArray,
historyEvent,
element = this,
time = new Date().getTime(),
performance = [],
moduleSelector = $module.selector || '',
className = settings.className,
metadata = settings.metadata,
namespace = settings.namespace,
errors = settings.errors,
instance = $tabNavigation.data('module'),
instance = $module.data('module'),
query = arguments[0],
methodInvoked = (instance !== undefined && typeof query == 'string'),
@ -42,7 +47,7 @@
module = {
initialize: function() {
module.debug('Initializing Tabs', $tabNavigation);
module.debug('Initializing Tabs', $module);
// attach history events
if(settings.history) {
if( $.address === undefined ) {
@ -62,19 +67,19 @@
}
}
// attach events if navigation wasn't set to window
if( !$.isWindow( $tabNavigation.get(0) ) ) {
$tabNavigation
if( !$.isWindow( $module.get(0) ) ) {
$module
.on('click.' + namespace, module.event.click)
;
}
$tabNavigation
$module
.data('module', module)
;
},
destroy: function() {
module.debug('Destroying tabs', $tabNavigation);
$tabNavigation
module.debug('Destroying tabs', $module);
$module
.off('.' + namespace)
;
},
@ -281,7 +286,7 @@
module.deactivate.tabs();
},
navigation: function() {
$tabNavigation
$module
.removeClass(className.active)
;
},
@ -300,7 +305,7 @@
get: {
initialPath: function() {
return $tabNavigation.eq(0).data(metadata.tab) || $tabs.eq(0).data(metadata.tab);
return $module.eq(0).data(metadata.tab) || $tabs.eq(0).data(metadata.tab);
},
// adds default tabs to tab path
defaultPathArray: function(tabPath) {
@ -308,7 +313,7 @@
},
defaultPath: function(tabPath) {
var
$defaultNav = $tabNavigation.filter('[data-' + metadata.tab + '^="' + tabPath + '/"]').eq(0),
$defaultNav = $module.filter('[data-' + metadata.tab + '^="' + tabPath + '/"]').eq(0),
defaultTab = $defaultNav.data(metadata.tab) || false
;
if( defaultTab ) {
@ -324,7 +329,7 @@
},
navElement: function(tabPath) {
tabPath = tabPath || activeTabPath;
return $tabNavigation.filter('[data-' + metadata.tab + '="' + tabPath + '"]');
return $module.filter('[data-' + metadata.tab + '="' + tabPath + '"]');
},
tabElement: function(tabPath) {
var
@ -376,44 +381,101 @@
;
}
},
/* standard module */
setting: function(name, value) {
if(value === undefined) {
module.debug('Changing setting', name, value);
if(value !== undefined) {
if( $.isPlainObject(name) ) {
$.extend(true, settings, name);
}
else {
settings[name] = value;
}
}
else {
return settings[name];
}
settings[name] = value;
},
internal: function(name, value) {
module.debug('Changing internal', name, value);
if(value !== undefined) {
if( $.isPlainObject(name) ) {
$.extend(true, module, name);
}
else {
module[name] = value;
}
}
else {
return module[name];
}
},
verbose: function() {
if(settings.verbose) {
module.debug.apply(this, arguments);
if(settings.verbose && settings.debug) {
module.performance.log(arguments[0]);
module.verbose = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
}
},
debug: function() {
var
output = [],
message = settings.moduleName + ': ' + arguments[0],
variables = [].slice.call( arguments, 1 ),
log = console.info || console.log || function(){}
;
log = Function.prototype.bind.call(log, console);
if(settings.debug) {
output.push(message);
log.apply(console, output.concat(variables) );
module.performance.log(arguments[0]);
module.debug = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
}
},
error: function() {
var
output = [],
errorMessage = settings.moduleName + ': ' + arguments[0],
variables = [].slice.call( arguments, 1 ),
log = console.warn || console.log || function(){}
;
log = Function.prototype.bind.call(log, console);
if(settings.debug) {
output.push(errorMessage);
output.concat(variables);
log.apply(console, output.concat(variables));
if(console.log !== undefined) {
module.error = Function.prototype.bind.call(console.error, console, settings.moduleName + ':');
}
},
performance: {
log: function(message) {
var
currentTime,
executionTime,
previousTime
;
if(settings.performance) {
currentTime = new Date().getTime();
previousTime = time || currentTime,
executionTime = currentTime - previousTime;
time = currentTime;
performance.push({
'Element' : element,
'Name' : message[0],
'Arguments' : message[1] || '',
'Execution Time' : executionTime
});
}
clearTimeout(module.performance.timer);
module.performance.timer = setTimeout(module.performance.display, 100);
},
display: function() {
var
title = settings.moduleName + ':',
totalTime = 0
;
time = false;
$.each(performance, function(index, data) {
totalTime += data['Execution Time'];
});
title += ' ' + totalTime + 'ms';
if(moduleSelector) {
title += ' \'' + moduleSelector + '\'';
}
if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {
console.groupCollapsed(title);
if(console.table) {
console.table(performance);
}
else {
$.each(performance, function(index, data) {
console.log(data['Name'] + ': ' + data['Execution Time']+'ms');
});
}
console.groupEnd();
}
performance = [];
}
},
invoke: function(query, context, passedArguments) {
@ -446,12 +508,16 @@
}
};
// check for invoking internal method
if(methodInvoked) {
invokedResponse = module.invoke(query, this, passedArguments);
if(instance === undefined) {
module.initialize();
}
invokedResponse = module.invoke(query);
}
// otherwise initialize
else {
if(instance !== undefined) {
module.destroy();
}
module.initialize();
}

2
build/minified/modules/tab.min.css

@ -1 +1 @@
.ui.tab{display:none}.ui.tab.active,.ui.tab.open{display:block}.ui.tab.simple{background-color:transparent;border:0}.ui.tab.loading{position:relative;overflow:hidden;display:block;min-height:250px;text-indent:-9999px}.ui.tab.loading:after{position:absolute;top:50px;left:50%;content:'Loading...';text-indent:0;color:rgba(0,0,0,.4);width:100%;height:100%;padding-top:75px;background:url(../images/loader-large.gif) no-repeat 0 0;visibility:visible}
.ui.tab{display:none}.ui.tab.active,.ui.tab.open{display:block}.ui.tab.simple{background-color:transparent;border:0}.ui.tab.loading{position:relative;overflow:hidden;display:block;min-height:250px;text-indent:-9999px}.ui.tab.loading:after{position:absolute;top:50px;left:50%;content:'Loading...';margin-left:-32px;text-indent:5px;color:rgba(0,0,0,.4);width:100%;height:100%;padding-top:75px;background:url(../images/loader-large.gif) no-repeat 0 0;visibility:visible}

2
build/minified/modules/tab.min.js

File diff suppressed because one or more lines are too long

2
build/minified/modules/video.min.js

@ -1 +1 @@
(function(e,t,n,o){e.fn.video=function(t){var n,i=e.extend(!0,{},e.fn.video.settings,t),a=arguments||!1;return e(this).each(function(){var r,s=e(this),c=s.find(i.selector.placeholder),l=s.find(i.selector.playButton),u=s.find(i.selector.embed),d=s.data("module-"+i.namespace),m="string"==typeof t,f=i.namespace,g=i.metadata,p=i.className;r={initialize:function(){r.debug("Initializing video"),c.off(".video").on("click."+f,r.play),l.off(".video").on("click."+f,r.play),s.data("module-"+f,r)},change:function(e,t){r.debug("Changing video to ",t),s.data(g.source,e).data(g.flv,t),i.onChange()},reset:function(){r.debug("Clearing video embed and showing placeholder"),s.removeClass(p.active),u.html(" "),c.show(),i.onReset()},play:function(){r.debug("Playing video");var e=s.data(g.source),t=s.data(g.flv);u.html(r.generate.html(e,t)),s.addClass(p.active),i.onPlay()},generate:{html:function(e,t){r.debug("Generating embed html");var n,o="auto"==i.width?s.width():i.width,a="auto"==i.height?s.height():i.height;return"vimeo"==e?n='<iframe src="http://player.vimeo.com/video/'+t+"?="+r.generate.url(e)+'"'+' width="'+o+'" height="'+a+'"'+' frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>':"youtube"==e&&(n='<iframe src="http://www.youtube.com/embed/'+t+"?="+r.generate.url(e)+'"'+' width="'+o+'" height="'+a+'"'+' frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'),n},url:function(e){var t=i.api?1:0,n=i.autoplay?1:0,o=i.hd?1:0,a=i.showUI?1:0,r=i.showUI?0:1,s="";return"vimeo"==e?(s="api="+t+"&amp;title="+a+"&amp;byline="+a+"&amp;portrait="+a+"&amp;autoplay="+n,i.color&&(s+="&amp;color="+i.color)):"youtube"==e&&(s="enablejsapi="+t+"&amp;autoplay="+n+"&amp;autohide="+r+"&amp;hq="+o+"&amp;modestbranding=1",i.color&&(s+="&amp;color="+i.color)),s}},debug:function(e,t){i.debug&&(t!==o?console.info(i.moduleName+": "+e,t):console.info(i.moduleName+": "+e))},error:function(e){console.warn(i.moduleName+": "+e)},invoke:function(t,n,a){var s;return a=a||Array.prototype.slice.call(arguments,2),"string"==typeof t&&d!==o&&(t=t.split("."),e.each(t,function(t,n){return e.isPlainObject(d[n])?(d=d[n],!0):e.isFunction(d[n])?(s=d[n],!0):(r.error(i.errors.method),!1)})),e.isFunction(s)?s.apply(n,a):s}},m?n=r.invoke(a[0],this,Array.prototype.slice.call(a,1)):(d&&r.destroy(),r.initialize())}),n!==o?n:this},e.fn.videoPlaylist=function(t,n){var o=e(this),i=e(t),a=i.find(".embed iframe"),r=e.extend({},e.fn.videoPlaylist.settings,n,!0);o.each(function(){var t=e(this),n=r.metadata,a=r.namespace,s=r.className,c={initialize:function(){t.on("click."+a,c.changeVideo)},changeVideo:function(){var a=t.data(n.flv)||!1,c=t.data(n.source)||!1,l=t.data(n.placeholder)||!1;if(a&&c){if(i.data(n.source,c).data(n.flv,a),r.showPlaceholder)i.removeClass(s.active).find(e.fn.video.selector.placeholder).attr("src",l);else try{i.video("play")}catch(u){console.warn("Video Playlist Module: "+r.error.init)}o.removeClass(s.active),t.addClass(s.active)}}};c.initialize()}),r.playFirst&&(o.eq(0).trigger("click"),a.size()>0&&a.attr("src",a.attr("src").replace("autoplay=1","autoplay=0")))},e.fn.video.settings={moduleName:"Video",namespace:"video",debug:!1,metadata:{source:"source",flv:"flv"},onPlay:function(){},onReset:function(){},onChange:function(){},play:function(){},pause:function(){},stop:function(){},width:"auto",height:"auto",autoplay:!1,color:"#442359",hd:!0,showUI:!1,api:!0,errors:{method:"The method you called is not defined"},className:{active:"active"},selector:{embed:".embed",placeholder:".placeholder",playButton:".play"}},e.fn.videoPlaylist.settings={moduleName:"Video Playlist",namespace:"videoPlaylist",source:"vimeo",showPlaceholder:!1,playFirst:!0,metadata:{flv:"flv",source:"source",placeholder:"placeholder"},errors:{init:"The video player you specified was not yet initialized"},className:{active:"active"}}})(jQuery,window,document);
(function(e,t,n,o){e.fn.video=function(t){var n,i=e.extend(!0,{},e.fn.video.settings,t),a=arguments||!1;return e(this).each(function(){var r,s=e(this),c=s.find(i.selector.placeholder),l=s.find(i.selector.playButton),u=s.find(i.selector.embed),d=s.data("module-"+i.namespace),m="string"==typeof t,f=i.namespace,p=i.metadata,g=i.className;r={initialize:function(){r.debug("Initializing video"),c.off(".video").on("click."+f,r.play),l.off(".video").on("click."+f,r.play),s.data("module-"+f,r)},change:function(e,t){r.debug("Changing video to ",t),s.data(p.source,e).data(p.flv,t),i.onChange()},reset:function(){r.debug("Clearing video embed and showing placeholder"),s.removeClass(g.active),u.html(" "),c.show(),i.onReset()},play:function(){r.debug("Playing video");var e=s.data(p.source),t=s.data(p.flv);u.html(r.generate.html(e,t)),s.addClass(g.active),i.onPlay()},generate:{html:function(e,t){r.debug("Generating embed html");var n,o="auto"==i.width?s.width():i.width,a="auto"==i.height?s.height():i.height;return"vimeo"==e?n='<iframe src="http://player.vimeo.com/video/'+t+"?="+r.generate.url(e)+'"'+' width="'+o+'" height="'+a+'"'+' frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>':"youtube"==e&&(n='<iframe src="http://www.youtube.com/embed/'+t+"?="+r.generate.url(e)+'"'+' width="'+o+'" height="'+a+'"'+' frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>'),n},url:function(e){var t=i.api?1:0,n=i.autoplay?1:0,o=i.hd?1:0,a=i.showUI?1:0,r=i.showUI?0:1,s="";return"vimeo"==e?(s="api="+t+"&amp;title="+a+"&amp;byline="+a+"&amp;portrait="+a+"&amp;autoplay="+n,i.color&&(s+="&amp;color="+i.color)):"youtube"==e&&(s="enablejsapi="+t+"&amp;autoplay="+n+"&amp;autohide="+r+"&amp;hq="+o+"&amp;modestbranding=1",i.color&&(s+="&amp;color="+i.color)),s}},debug:function(e,t){i.debug&&(t!==o?console.info(i.moduleName+": "+e,t):console.info(i.moduleName+": "+e))},error:function(e){console.warn(i.moduleName+": "+e)},invoke:function(t,n,a){var s;return a=a||Array.prototype.slice.call(arguments,2),"string"==typeof t&&d!==o&&(t=t.split("."),e.each(t,function(t,n){return e.isPlainObject(d[n])?(d=d[n],!0):e.isFunction(d[n])?(s=d[n],!0):(r.error(i.errors.method),!1)})),e.isFunction(s)?s.apply(n,a):s}},m?n=r.invoke(a[0],this,Array.prototype.slice.call(a,1)):(d&&r.destroy(),r.initialize())}),n!==o?n:this},e.fn.videoPlaylist=function(t,n){var o=e(this),i=e(t),a=i.find(".embed iframe"),r=e.extend({},e.fn.videoPlaylist.settings,n,!0);o.each(function(){var t=e(this),n=r.metadata,a=r.namespace,s=r.className,c={initialize:function(){t.on("click."+a,c.changeVideo)},changeVideo:function(){var a=t.data(n.flv)||!1,c=t.data(n.source)||!1,l=t.data(n.placeholder)||!1;if(a&&c){if(i.data(n.source,c).data(n.flv,a),r.showPlaceholder)i.removeClass(s.active).find(e.fn.video.selector.placeholder).attr("src",l);else try{i.video("play")}catch(u){console.warn("Video Playlist Module: "+r.error.init)}o.removeClass(s.active),t.addClass(s.active)}}};c.initialize()}),r.playFirst&&(o.eq(0).trigger("click"),a.size()>0&&a.attr("src",a.attr("src").replace("autoplay=1","autoplay=0")))},e.fn.video.settings={moduleName:"Video",namespace:"video",debug:!1,metadata:{source:"source",flv:"flv"},onPlay:function(){},onReset:function(){},onChange:function(){},play:function(){},pause:function(){},stop:function(){},width:"auto",height:"auto",autoplay:!1,color:"#442359",hd:!0,showUI:!1,api:!0,errors:{method:"The method you called is not defined"},className:{active:"active"},selector:{embed:".embed",placeholder:".placeholder",playButton:".play"}},e.fn.videoPlaylist.settings={moduleName:"Video Playlist",namespace:"videoPlaylist",source:"vimeo",showPlaceholder:!1,playFirst:!0,metadata:{flv:"flv",source:"source",placeholder:"placeholder"},errors:{init:"The video player you specified was not yet initialized"},className:{active:"active"}}})(jQuery,window,document);

2
build/minified/views/feed.min.css

@ -1 +1 @@
.ui.feed a{cursor:pointer}.ui.feed .event{width:100%;display:table;padding:1em;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.ui.feed .event:first-child{border-top:0}.ui.feed .event:last-child{margin-bottom:1em}.ui.feed .label{width:3em;display:table-cell;vertical-align:top;text-align:left}.ui.feed .label .icon{font-size:1.5em;margin:0}.ui.feed .label img{width:3em;margin:0;border-radius:50em}.ui.feed .label+.content{padding:0 1em}.ui.feed .content{display:table-cell;vertical-align:top;text-align:left}.ui.feed .content .date{float:right;padding-left:1em;color:rgba(0,0,0,.4)}.ui.feed .content .summary{margin-top:.75em;color:rgba(0,0,0,.75)}.ui.feed .content .summary img{display:inline-block;margin-right:.25em;width:4em;border-radius:500px}.ui.feed .content .extra{margin:1em 0 0;padding:.5em 0 0;color:rgba(0,0,0,.5)}.ui.feed .content .extra.images img{display:inline-block;margin-right:.25em;width:6em}.ui.feed .content .extra.text{padding:.5em 1em;border-left:.2em solid rgba(0,0,0,.1)}.ui.small.feed .label img{width:2.5em}.ui.small.feed .label .icon{font-size:1.25em}.ui.feed .event{padding:.75em 0}.ui.small.feed .label+.content{padding:.5em .5em 0}.ui.small.feed .content .extra.images img{width:5em}.ui.small.feed .content .extra{margin:.5em 0 0}.ui.feed .content .extra.text{padding:.25em .5em}
.ui.feed a{cursor:pointer}.ui.feed .event{width:100%;display:table;padding:1em;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.ui.feed .event:first-child{border-top:0}.ui.feed .event:last-child{margin-bottom:1em}.ui.feed .label{width:3em;display:table-cell;vertical-align:top;text-align:left}.ui.feed .label .icon{font-size:1.5em;margin:0}.ui.feed .label img{width:3em;margin:0;border-radius:50em}.ui.feed .label+.content{padding:.75em 1em 0}.ui.feed .content{display:table-cell;vertical-align:top;text-align:left}.ui.feed .content .date{float:right;padding-left:1em;color:rgba(0,0,0,.4)}.ui.feed .content .summary{color:rgba(0,0,0,.75)}.ui.feed .content .summary img{display:inline-block;margin-right:.25em;width:4em;border-radius:500px}.ui.feed .content .extra{margin:1em 0 0;padding:.5em 0 0;color:rgba(0,0,0,.5)}.ui.feed .content .extra.images img{display:inline-block;margin-right:.25em;width:6em}.ui.feed .content .extra.text{padding:.5em 1em;border-left:.2em solid rgba(0,0,0,.1)}.ui.small.feed .label img{width:2.5em}.ui.small.feed .label .icon{font-size:1.25em}.ui.feed .event{padding:.75em 0}.ui.small.feed .label+.content{padding:.5em .5em 0}.ui.small.feed .content .extra.images img{width:5em}.ui.small.feed .content .extra{margin:.5em 0 0}.ui.feed .content .extra.text{padding:.25em .5em}

2
build/minified/views/item.min.css

File diff suppressed because one or more lines are too long

38
build/packaged/modules/dropdown.js

@ -400,7 +400,6 @@ $.fn.dropdown = function(parameters) {
},
setting: function(name, value) {
module.debug('Changing setting', name, value);
if(value !== undefined) {
if( $.isPlainObject(name) ) {
$.extend(true, settings, name);
@ -414,7 +413,6 @@ $.fn.dropdown = function(parameters) {
}
},
internal: function(name, value) {
module.debug('Changing internal', name, value);
if(value !== undefined) {
if( $.isPlainObject(name) ) {
$.extend(true, module, name);
@ -427,24 +425,29 @@ $.fn.dropdown = function(parameters) {
return module[name];
}
},
verbose: function() {
if(settings.verbose && settings.debug) {
module.performance.log(arguments[0]);
module.verbose = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
}
},
debug: function() {
if(settings.debug) {
module.performance.log(arguments[0]);
module.debug = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
if(settings.performance) {
module.performance.log(arguments);
}
else {
module.debug = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
}
}
},
error: function() {
if(console.log !== undefined) {
module.error = Function.prototype.bind.call(console.error, console, settings.moduleName + ':');
verbose: function() {
if(settings.verbose && settings.debug) {
if(settings.performance) {
module.performance.log(arguments);
}
else {
module.verbose = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
}
}
},
error: function() {
module.error = Function.prototype.bind.call(console.log, console, settings.moduleName + ':');
},
performance: {
log: function(message) {
var
@ -508,14 +511,13 @@ $.fn.dropdown = function(parameters) {
$.each(query, function(depth, value) {
if( $.isPlainObject( instance[value] ) && (depth != maxDepth) ) {
instance = instance[value];
return true;
}
else if( instance[value] !== undefined ) {
found = instance[value];
return true;
}
module.error(errors.method);
return false;
else {
module.error(error.method);
}
});
}
if ( $.isFunction( found ) ) {

37
build/packaged/modules/modal.js

@ -148,22 +148,30 @@
modalType = (cantFit)
? 'absolute'
: 'fixed',
topCentering = (cantFit)
? '0'
: '50%',
offsetTop = (cantFit)
? (windowHeight / 8)
: -( (modalHeight - settings.closeSpacing) / 2),
finalPosition = ($modal.css('position') == 'absolute')
? offsetTop + $(window).prop('pageYOffset')
: offsetTop,
startPosition = finalPosition + settings.animationOffset
topCentering,
offsetTop,
finalPosition,
startPosition
;
$modal
.addClass(modalType)
;
topCentering = (cantFit)
? '0'
: '50%'
;
offsetTop = (cantFit)
? (windowHeight / 8)
: -( (modalHeight - settings.closeSpacing) / 2)
;
finalPosition = ($modal.css('position') == 'absolute')
? offsetTop + $(window).prop('pageYOffset')
: offsetTop
;
startPosition = finalPosition + settings.animationOffset;
// set top margin as offset
if($.fn.popIn !== undefined) {
$modal
.addClass(modalType)
.css({
display : 'block',
opacity : 0,
@ -175,7 +183,6 @@
}
else {
$modal
.addClass(modalType)
.css({
display : 'block',
opacity : 0,
@ -194,12 +201,10 @@
.hide()
;
}
console.log('zzz');
$.dimScreen({
context : settings.context,
duration : 0,
dim : function() {
console.log('aaa');
$(document)
.on('keyup.' + namespace, function(event) {
var
@ -214,8 +219,6 @@
}
})
;
console.log($closeButton);
console.log('attaching click');
$closeButton
.one('click', function() {
$modal.modal('hide');

148
build/packaged/modules/tab.js

@ -13,7 +13,7 @@
var
settings = $.extend(true, {}, $.fn.tabNavigation.settings, parameters),
$tabNavigation = $(this),
$module = $(this),
$tabs = $(settings.context).find(settings.selector.tabs),
firstLoad = true,
@ -24,12 +24,17 @@
parameterArray,
historyEvent,
element = this,
time = new Date().getTime(),
performance = [],
moduleSelector = $module.selector || '',
className = settings.className,
metadata = settings.metadata,
namespace = settings.namespace,
errors = settings.errors,
instance = $tabNavigation.data('module'),
instance = $module.data('module'),
query = arguments[0],
methodInvoked = (instance !== undefined && typeof query == 'string'),
@ -42,7 +47,7 @@
module = {
initialize: function() {
module.debug('Initializing Tabs', $tabNavigation);
module.debug('Initializing Tabs', $module);
// attach history events
if(settings.history) {
if( $.address === undefined ) {
@ -62,19 +67,19 @@
}
}
// attach events if navigation wasn't set to window
if( !$.isWindow( $tabNavigation.get(0) ) ) {
$tabNavigation
if( !$.isWindow( $module.get(0) ) ) {
$module
.on('click.' + namespace, module.event.click)
;
}
$tabNavigation
$module
.data('module', module)
;
},
destroy: function() {
module.debug('Destroying tabs', $tabNavigation);
$tabNavigation
module.debug('Destroying tabs', $module);
$module
.off('.' + namespace)
;
},
@ -281,7 +286,7 @@
module.deactivate.tabs();
},
navigation: function() {
$tabNavigation
$module
.removeClass(className.active)
;
},
@ -300,7 +305,7 @@
get: {
initialPath: function() {
return $tabNavigation.eq(0).data(metadata.tab) || $tabs.eq(0).data(metadata.tab);
return $module.eq(0).data(metadata.tab) || $tabs.eq(0).data(metadata.tab);
},
// adds default tabs to tab path
defaultPathArray: function(tabPath) {
@ -308,7 +313,7 @@
},
defaultPath: function(tabPath) {
var
$defaultNav = $tabNavigation.filter('[data-' + metadata.tab + '^="' + tabPath + '/"]').eq(0),
$defaultNav = $module.filter('[data-' + metadata.tab + '^="' + tabPath + '/"]').eq(0),
defaultTab = $defaultNav.data(metadata.tab) || false
;
if( defaultTab ) {
@ -324,7 +329,7 @@
},
navElement: function(tabPath) {
tabPath = tabPath || activeTabPath;
return $tabNavigation.filter('[data-' + metadata.tab + '="' + tabPath + '"]');
return $module.filter('[data-' + metadata.tab + '="' + tabPath + '"]');
},
tabElement: function(tabPath) {
var
@ -376,44 +381,101 @@
;
}
},
/* standard module */
setting: function(name, value) {
if(value === undefined) {
module.debug('Changing setting', name, value);
if(value !== undefined) {
if( $.isPlainObject(name) ) {
$.extend(true, settings, name);
}
else {
settings[name] = value;
}
}
else {
return settings[name];
}
settings[name] = value;
},
internal: function(name, value) {
module.debug('Changing internal', name, value);
if(value !== undefined) {
if( $.isPlainObject(name) ) {
$.extend(true, module, name);
}
else {
module[name] = value;
}
}
else {
return module[name];
}
},
verbose: function() {
if(settings.verbose) {
module.debug.apply(this, arguments);
if(settings.verbose && settings.debug) {
module.performance.log(arguments[0]);
module.verbose = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
}
},
debug: function() {
var
output = [],
message = settings.moduleName + ': ' + arguments[0],
variables = [].slice.call( arguments, 1 ),
log = console.info || console.log || function(){}
;
log = Function.prototype.bind.call(log, console);
if(settings.debug) {
output.push(message);
log.apply(console, output.concat(variables) );
module.performance.log(arguments[0]);
module.debug = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
}
},
error: function() {
var
output = [],
errorMessage = settings.moduleName + ': ' + arguments[0],
variables = [].slice.call( arguments, 1 ),
log = console.warn || console.log || function(){}
;
log = Function.prototype.bind.call(log, console);
if(settings.debug) {
output.push(errorMessage);
output.concat(variables);
log.apply(console, output.concat(variables));
if(console.log !== undefined) {
module.error = Function.prototype.bind.call(console.error, console, settings.moduleName + ':');
}
},
performance: {
log: function(message) {
var
currentTime,
executionTime,
previousTime
;
if(settings.performance) {
currentTime = new Date().getTime();
previousTime = time || currentTime,
executionTime = currentTime - previousTime;
time = currentTime;
performance.push({
'Element' : element,
'Name' : message[0],
'Arguments' : message[1] || '',
'Execution Time' : executionTime
});
}
clearTimeout(module.performance.timer);
module.performance.timer = setTimeout(module.performance.display, 100);
},
display: function() {
var
title = settings.moduleName + ':',
totalTime = 0
;
time = false;
$.each(performance, function(index, data) {
totalTime += data['Execution Time'];
});
title += ' ' + totalTime + 'ms';
if(moduleSelector) {
title += ' \'' + moduleSelector + '\'';
}
if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {
console.groupCollapsed(title);
if(console.table) {
console.table(performance);
}
else {
$.each(performance, function(index, data) {
console.log(data['Name'] + ': ' + data['Execution Time']+'ms');
});
}
console.groupEnd();
}
performance = [];
}
},
invoke: function(query, context, passedArguments) {
@ -446,12 +508,16 @@
}
};
// check for invoking internal method
if(methodInvoked) {
invokedResponse = module.invoke(query, this, passedArguments);
if(instance === undefined) {
module.initialize();
}
invokedResponse = module.invoke(query);
}
// otherwise initialize
else {
if(instance !== undefined) {
module.destroy();
}
module.initialize();
}

2
build/packaged/semantic.min.css.REMOVED.git-id

@ -1 +1 @@
72cde378f961f88a99fb84840c6ef1c0849dfd36
b31e801d6737cb258414e01c27c244790b6b10f1

2
build/packaged/semantic.min.js.REMOVED.git-id

@ -1 +1 @@
c6fbbda6611281e15adb5e1ed8d40e58358a5d09
50298d2d25645bc72d68652bfed8169d692a3ff8

1
build/uncompressed/collections/form.css

@ -43,7 +43,6 @@
display: block;
color: #555555;
font-size: 0.875em;
line-height: 1.2;
}
/*--------------------
Standard Inputs

2
build/uncompressed/collections/grid.css

@ -119,7 +119,7 @@
}
@media only screen and (min-width: 2000px) {
.ui.responsive.grid {
padding: 0% 23%;
padding: 0% 25%;
}
}
/*-------------------

1
build/uncompressed/collections/menu.css

@ -1213,6 +1213,7 @@
Attached
---------------*/
.ui.menu.attached {
margin: 0rem;
-moz-border-radius: 0px;
-webkit-border-radius: 0px;
border-radius: 0px;

10
build/uncompressed/elements/button.css

@ -144,7 +144,7 @@
position: absolute;
left: 50%;
content: "Error";
margin-left: -1.2em;
margin-left: -1.8em;
color: #FFFFFF;
-webkit-animation: button-text 0.5s;
-moz-animation: button-text 0.5s;
@ -162,9 +162,9 @@
.ui.button.success,
.ui.button.success.hover,
.ui.button.success.down {
position: relative;
background-color: #5BBD72;
color: transparent;
position: relative !important;
background-color: #5BBD72 !important;
color: transparent !important;
}
.ui.button.success .icon {
opacity: 1;
@ -178,7 +178,7 @@
position: absolute;
left: 50%;
content: "Success";
margin-left: -1.6em;
margin-left: -2em;
color: #FFFFFF;
-webkit-animation: button-text 0.5s;
-moz-animation: button-text 0.5s;

2
build/uncompressed/elements/label.css

@ -82,7 +82,7 @@ a.ui.label:hover:before {
color: rgba(0, 0, 0, 0.7);
}
.ui.label .icon.close:hover {
opacity: 1;
opacity: 0.99;
}
/*******************************
Variations

6
build/uncompressed/elements/loader.css

@ -135,7 +135,11 @@
Inline
--------------------*/
.ui.inline.loader {
display: inline-block;
position: static;
vertical-align: middle;
margin: 0em;
}
.ui.inline.loader.active,
.ui.inline.loader.visible {
display: inline-block;
}

38
build/uncompressed/modules/dropdown.js

@ -400,7 +400,6 @@ $.fn.dropdown = function(parameters) {
},
setting: function(name, value) {
module.debug('Changing setting', name, value);
if(value !== undefined) {
if( $.isPlainObject(name) ) {
$.extend(true, settings, name);
@ -414,7 +413,6 @@ $.fn.dropdown = function(parameters) {
}
},
internal: function(name, value) {
module.debug('Changing internal', name, value);
if(value !== undefined) {
if( $.isPlainObject(name) ) {
$.extend(true, module, name);
@ -427,24 +425,29 @@ $.fn.dropdown = function(parameters) {
return module[name];
}
},
verbose: function() {
if(settings.verbose && settings.debug) {
module.performance.log(arguments[0]);
module.verbose = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
}
},
debug: function() {
if(settings.debug) {
module.performance.log(arguments[0]);
module.debug = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
if(settings.performance) {
module.performance.log(arguments);
}
else {
module.debug = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
}
}
},
error: function() {
if(console.log !== undefined) {
module.error = Function.prototype.bind.call(console.error, console, settings.moduleName + ':');
verbose: function() {
if(settings.verbose && settings.debug) {
if(settings.performance) {
module.performance.log(arguments);
}
else {
module.verbose = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
}
}
},
error: function() {
module.error = Function.prototype.bind.call(console.log, console, settings.moduleName + ':');
},
performance: {
log: function(message) {
var
@ -508,14 +511,13 @@ $.fn.dropdown = function(parameters) {
$.each(query, function(depth, value) {
if( $.isPlainObject( instance[value] ) && (depth != maxDepth) ) {
instance = instance[value];
return true;
}
else if( instance[value] !== undefined ) {
found = instance[value];
return true;
}
module.error(errors.method);
return false;
else {
module.error(error.method);
}
});
}
if ( $.isFunction( found ) ) {

3
build/uncompressed/modules/modal.css

@ -67,6 +67,9 @@
float: right;
width: 50%;
}
.ui.modal.fixed {
position: fixed;
}
/* Static In-Page Modal */
.ui.modal.static {
display: block;

37
build/uncompressed/modules/modal.js

@ -148,22 +148,30 @@
modalType = (cantFit)
? 'absolute'
: 'fixed',
topCentering = (cantFit)
? '0'
: '50%',
offsetTop = (cantFit)
? (windowHeight / 8)
: -( (modalHeight - settings.closeSpacing) / 2),
finalPosition = ($modal.css('position') == 'absolute')
? offsetTop + $(window).prop('pageYOffset')
: offsetTop,
startPosition = finalPosition + settings.animationOffset
topCentering,
offsetTop,
finalPosition,
startPosition
;
$modal
.addClass(modalType)
;
topCentering = (cantFit)
? '0'
: '50%'
;
offsetTop = (cantFit)
? (windowHeight / 8)
: -( (modalHeight - settings.closeSpacing) / 2)
;
finalPosition = ($modal.css('position') == 'absolute')
? offsetTop + $(window).prop('pageYOffset')
: offsetTop
;
startPosition = finalPosition + settings.animationOffset;
// set top margin as offset
if($.fn.popIn !== undefined) {
$modal
.addClass(modalType)
.css({
display : 'block',
opacity : 0,
@ -175,7 +183,6 @@
}
else {
$modal
.addClass(modalType)
.css({
display : 'block',
opacity : 0,
@ -194,12 +201,10 @@
.hide()
;
}
console.log('zzz');
$.dimScreen({
context : settings.context,
duration : 0,
dim : function() {
console.log('aaa');
$(document)
.on('keyup.' + namespace, function(event) {
var
@ -214,8 +219,6 @@
}
})
;
console.log($closeButton);
console.log('attaching click');
$closeButton
.one('click', function() {
$modal.modal('hide');

3
build/uncompressed/modules/tab.css

@ -28,7 +28,8 @@
top: 50px;
left: 50%;
content: 'Loading...';
text-indent: 0px;
margin-left: -32px;
text-indent: 5px;
color: rgba(0, 0, 0, 0.4);
width: 100%;
height: 100%;

148
build/uncompressed/modules/tab.js

@ -13,7 +13,7 @@
var
settings = $.extend(true, {}, $.fn.tabNavigation.settings, parameters),
$tabNavigation = $(this),
$module = $(this),
$tabs = $(settings.context).find(settings.selector.tabs),
firstLoad = true,
@ -24,12 +24,17 @@
parameterArray,
historyEvent,
element = this,
time = new Date().getTime(),
performance = [],
moduleSelector = $module.selector || '',
className = settings.className,
metadata = settings.metadata,
namespace = settings.namespace,
errors = settings.errors,
instance = $tabNavigation.data('module'),
instance = $module.data('module'),
query = arguments[0],
methodInvoked = (instance !== undefined && typeof query == 'string'),
@ -42,7 +47,7 @@
module = {
initialize: function() {
module.debug('Initializing Tabs', $tabNavigation);
module.debug('Initializing Tabs', $module);
// attach history events
if(settings.history) {
if( $.address === undefined ) {
@ -62,19 +67,19 @@
}
}
// attach events if navigation wasn't set to window
if( !$.isWindow( $tabNavigation.get(0) ) ) {
$tabNavigation
if( !$.isWindow( $module.get(0) ) ) {
$module
.on('click.' + namespace, module.event.click)
;
}
$tabNavigation
$module
.data('module', module)
;
},
destroy: function() {
module.debug('Destroying tabs', $tabNavigation);
$tabNavigation
module.debug('Destroying tabs', $module);
$module
.off('.' + namespace)
;
},
@ -281,7 +286,7 @@
module.deactivate.tabs();
},
navigation: function() {
$tabNavigation
$module
.removeClass(className.active)
;
},
@ -300,7 +305,7 @@
get: {
initialPath: function() {
return $tabNavigation.eq(0).data(metadata.tab) || $tabs.eq(0).data(metadata.tab);
return $module.eq(0).data(metadata.tab) || $tabs.eq(0).data(metadata.tab);
},
// adds default tabs to tab path
defaultPathArray: function(tabPath) {
@ -308,7 +313,7 @@
},
defaultPath: function(tabPath) {
var
$defaultNav = $tabNavigation.filter('[data-' + metadata.tab + '^="' + tabPath + '/"]').eq(0),
$defaultNav = $module.filter('[data-' + metadata.tab + '^="' + tabPath + '/"]').eq(0),
defaultTab = $defaultNav.data(metadata.tab) || false
;
if( defaultTab ) {
@ -324,7 +329,7 @@
},
navElement: function(tabPath) {
tabPath = tabPath || activeTabPath;
return $tabNavigation.filter('[data-' + metadata.tab + '="' + tabPath + '"]');
return $module.filter('[data-' + metadata.tab + '="' + tabPath + '"]');
},
tabElement: function(tabPath) {
var
@ -376,44 +381,101 @@
;
}
},
/* standard module */
setting: function(name, value) {
if(value === undefined) {
module.debug('Changing setting', name, value);
if(value !== undefined) {
if( $.isPlainObject(name) ) {
$.extend(true, settings, name);
}
else {
settings[name] = value;
}
}
else {
return settings[name];
}
settings[name] = value;
},
internal: function(name, value) {
module.debug('Changing internal', name, value);
if(value !== undefined) {
if( $.isPlainObject(name) ) {
$.extend(true, module, name);
}
else {
module[name] = value;
}
}
else {
return module[name];
}
},
verbose: function() {
if(settings.verbose) {
module.debug.apply(this, arguments);
if(settings.verbose && settings.debug) {
module.performance.log(arguments[0]);
module.verbose = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
}
},
debug: function() {
var
output = [],
message = settings.moduleName + ': ' + arguments[0],
variables = [].slice.call( arguments, 1 ),
log = console.info || console.log || function(){}
;
log = Function.prototype.bind.call(log, console);
if(settings.debug) {
output.push(message);
log.apply(console, output.concat(variables) );
module.performance.log(arguments[0]);
module.debug = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
}
},
error: function() {
var
output = [],
errorMessage = settings.moduleName + ': ' + arguments[0],
variables = [].slice.call( arguments, 1 ),
log = console.warn || console.log || function(){}
;
log = Function.prototype.bind.call(log, console);
if(settings.debug) {
output.push(errorMessage);
output.concat(variables);
log.apply(console, output.concat(variables));
if(console.log !== undefined) {
module.error = Function.prototype.bind.call(console.error, console, settings.moduleName + ':');
}
},
performance: {
log: function(message) {
var
currentTime,
executionTime,
previousTime
;
if(settings.performance) {
currentTime = new Date().getTime();
previousTime = time || currentTime,
executionTime = currentTime - previousTime;
time = currentTime;
performance.push({
'Element' : element,
'Name' : message[0],
'Arguments' : message[1] || '',
'Execution Time' : executionTime
});
}
clearTimeout(module.performance.timer);
module.performance.timer = setTimeout(module.performance.display, 100);
},
display: function() {
var
title = settings.moduleName + ':',
totalTime = 0
;
time = false;
$.each(performance, function(index, data) {
totalTime += data['Execution Time'];
});
title += ' ' + totalTime + 'ms';
if(moduleSelector) {
title += ' \'' + moduleSelector + '\'';
}
if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {
console.groupCollapsed(title);
if(console.table) {
console.table(performance);
}
else {
$.each(performance, function(index, data) {
console.log(data['Name'] + ': ' + data['Execution Time']+'ms');
});
}
console.groupEnd();
}
performance = [];
}
},
invoke: function(query, context, passedArguments) {
@ -446,12 +508,16 @@
}
};
// check for invoking internal method
if(methodInvoked) {
invokedResponse = module.invoke(query, this, passedArguments);
if(instance === undefined) {
module.initialize();
}
invokedResponse = module.invoke(query);
}
// otherwise initialize
else {
if(instance !== undefined) {
module.destroy();
}
module.initialize();
}

3
build/uncompressed/views/feed.css

@ -51,7 +51,7 @@
border-radius: 50em;
}
.ui.feed .label + .content {
padding: 0em 1em 0em;
padding: 0.75em 1em 0em;
}
/* Content */
.ui.feed .content {
@ -67,7 +67,6 @@
}
/* Summary */
.ui.feed .content .summary {
margin-top: 0.75em;
color: rgba(0, 0, 0, 0.75);
}
.ui.feed .content .summary img {

4
build/uncompressed/views/item.css

@ -16,13 +16,13 @@
Items
---------------*/
.ui.items {
margin: 1em 0em;
margin: 1em 0em 0em;
}
.ui.items:first-child {
margin-top: 0em;
}
.ui.items:last-child {
margin-bottom: 0em;
margin-bottom: -1em;
}
/* Force Clearing */
.ui.items:after {

1
node/src/files/components/semantic/collections/form.css

@ -43,7 +43,6 @@
display: block;
color: #555555;
font-size: 0.875em;
line-height: 1.2;
}
/*--------------------
Standard Inputs

2
node/src/files/components/semantic/collections/grid.css

@ -119,7 +119,7 @@
}
@media only screen and (min-width: 2000px) {
.ui.responsive.grid {
padding: 0% 23%;
padding: 0% 25%;
}
}
/*-------------------

1
node/src/files/components/semantic/collections/menu.css

@ -1213,6 +1213,7 @@
Attached
---------------*/
.ui.menu.attached {
margin: 0rem;
-moz-border-radius: 0px;
-webkit-border-radius: 0px;
border-radius: 0px;

10
node/src/files/components/semantic/elements/button.css

@ -144,7 +144,7 @@
position: absolute;
left: 50%;
content: "Error";
margin-left: -1.2em;
margin-left: -1.8em;
color: #FFFFFF;
-webkit-animation: button-text 0.5s;
-moz-animation: button-text 0.5s;
@ -162,9 +162,9 @@
.ui.button.success,
.ui.button.success.hover,
.ui.button.success.down {
position: relative;
background-color: #5BBD72;
color: transparent;
position: relative !important;
background-color: #5BBD72 !important;
color: transparent !important;
}
.ui.button.success .icon {
opacity: 1;
@ -178,7 +178,7 @@
position: absolute;
left: 50%;
content: "Success";
margin-left: -1.6em;
margin-left: -2em;
color: #FFFFFF;
-webkit-animation: button-text 0.5s;
-moz-animation: button-text 0.5s;

2
node/src/files/components/semantic/elements/label.css

@ -82,7 +82,7 @@ a.ui.label:hover:before {
color: rgba(0, 0, 0, 0.7);
}
.ui.label .icon.close:hover {
opacity: 1;
opacity: 0.99;
}
/*******************************
Variations

6
node/src/files/components/semantic/elements/loader.css

@ -135,7 +135,11 @@
Inline
--------------------*/
.ui.inline.loader {
display: inline-block;
position: static;
vertical-align: middle;
margin: 0em;
}
.ui.inline.loader.active,
.ui.inline.loader.visible {
display: inline-block;
}

38
node/src/files/components/semantic/modules/dropdown.js

@ -400,7 +400,6 @@ $.fn.dropdown = function(parameters) {
},
setting: function(name, value) {
module.debug('Changing setting', name, value);
if(value !== undefined) {
if( $.isPlainObject(name) ) {
$.extend(true, settings, name);
@ -414,7 +413,6 @@ $.fn.dropdown = function(parameters) {
}
},
internal: function(name, value) {
module.debug('Changing internal', name, value);
if(value !== undefined) {
if( $.isPlainObject(name) ) {
$.extend(true, module, name);
@ -427,24 +425,29 @@ $.fn.dropdown = function(parameters) {
return module[name];
}
},
verbose: function() {
if(settings.verbose && settings.debug) {
module.performance.log(arguments[0]);
module.verbose = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
}
},
debug: function() {
if(settings.debug) {
module.performance.log(arguments[0]);
module.debug = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
if(settings.performance) {
module.performance.log(arguments);
}
else {
module.debug = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
}
}
},
error: function() {
if(console.log !== undefined) {
module.error = Function.prototype.bind.call(console.error, console, settings.moduleName + ':');
verbose: function() {
if(settings.verbose && settings.debug) {
if(settings.performance) {
module.performance.log(arguments);
}
else {
module.verbose = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
}
}
},
error: function() {
module.error = Function.prototype.bind.call(console.log, console, settings.moduleName + ':');
},
performance: {
log: function(message) {
var
@ -508,14 +511,13 @@ $.fn.dropdown = function(parameters) {
$.each(query, function(depth, value) {
if( $.isPlainObject( instance[value] ) && (depth != maxDepth) ) {
instance = instance[value];
return true;
}
else if( instance[value] !== undefined ) {
found = instance[value];
return true;
}
module.error(errors.method);
return false;
else {
module.error(error.method);
}
});
}
if ( $.isFunction( found ) ) {

3
node/src/files/components/semantic/modules/modal.css

@ -67,6 +67,9 @@
float: right;
width: 50%;
}
.ui.modal.fixed {
position: fixed;
}
/* Static In-Page Modal */
.ui.modal.static {
display: block;

37
node/src/files/components/semantic/modules/modal.js

@ -148,22 +148,30 @@
modalType = (cantFit)
? 'absolute'
: 'fixed',
topCentering = (cantFit)
? '0'
: '50%',
offsetTop = (cantFit)
? (windowHeight / 8)
: -( (modalHeight - settings.closeSpacing) / 2),
finalPosition = ($modal.css('position') == 'absolute')
? offsetTop + $(window).prop('pageYOffset')
: offsetTop,
startPosition = finalPosition + settings.animationOffset
topCentering,
offsetTop,
finalPosition,
startPosition
;
$modal
.addClass(modalType)
;
topCentering = (cantFit)
? '0'
: '50%'
;
offsetTop = (cantFit)
? (windowHeight / 8)
: -( (modalHeight - settings.closeSpacing) / 2)
;
finalPosition = ($modal.css('position') == 'absolute')
? offsetTop + $(window).prop('pageYOffset')
: offsetTop
;
startPosition = finalPosition + settings.animationOffset;
// set top margin as offset
if($.fn.popIn !== undefined) {
$modal
.addClass(modalType)
.css({
display : 'block',
opacity : 0,
@ -175,7 +183,6 @@
}
else {
$modal
.addClass(modalType)
.css({
display : 'block',
opacity : 0,
@ -194,12 +201,10 @@
.hide()
;
}
console.log('zzz');
$.dimScreen({
context : settings.context,
duration : 0,
dim : function() {
console.log('aaa');
$(document)
.on('keyup.' + namespace, function(event) {
var
@ -214,8 +219,6 @@
}
})
;
console.log($closeButton);
console.log('attaching click');
$closeButton
.one('click', function() {
$modal.modal('hide');

3
node/src/files/components/semantic/modules/tab.css

@ -28,7 +28,8 @@
top: 50px;
left: 50%;
content: 'Loading...';
text-indent: 0px;
margin-left: -32px;
text-indent: 5px;
color: rgba(0, 0, 0, 0.4);
width: 100%;
height: 100%;

148
node/src/files/components/semantic/modules/tab.js

@ -13,7 +13,7 @@
var
settings = $.extend(true, {}, $.fn.tabNavigation.settings, parameters),
$tabNavigation = $(this),
$module = $(this),
$tabs = $(settings.context).find(settings.selector.tabs),
firstLoad = true,
@ -24,12 +24,17 @@
parameterArray,
historyEvent,
element = this,
time = new Date().getTime(),
performance = [],
moduleSelector = $module.selector || '',
className = settings.className,
metadata = settings.metadata,
namespace = settings.namespace,
errors = settings.errors,
instance = $tabNavigation.data('module'),
instance = $module.data('module'),
query = arguments[0],
methodInvoked = (instance !== undefined && typeof query == 'string'),
@ -42,7 +47,7 @@
module = {
initialize: function() {
module.debug('Initializing Tabs', $tabNavigation);
module.debug('Initializing Tabs', $module);
// attach history events
if(settings.history) {
if( $.address === undefined ) {
@ -62,19 +67,19 @@
}
}
// attach events if navigation wasn't set to window
if( !$.isWindow( $tabNavigation.get(0) ) ) {
$tabNavigation
if( !$.isWindow( $module.get(0) ) ) {
$module
.on('click.' + namespace, module.event.click)
;
}
$tabNavigation
$module
.data('module', module)
;
},
destroy: function() {
module.debug('Destroying tabs', $tabNavigation);
$tabNavigation
module.debug('Destroying tabs', $module);
$module
.off('.' + namespace)
;
},
@ -281,7 +286,7 @@
module.deactivate.tabs();
},
navigation: function() {
$tabNavigation
$module
.removeClass(className.active)
;
},
@ -300,7 +305,7 @@
get: {
initialPath: function() {
return $tabNavigation.eq(0).data(metadata.tab) || $tabs.eq(0).data(metadata.tab);
return $module.eq(0).data(metadata.tab) || $tabs.eq(0).data(metadata.tab);
},
// adds default tabs to tab path
defaultPathArray: function(tabPath) {
@ -308,7 +313,7 @@
},
defaultPath: function(tabPath) {
var
$defaultNav = $tabNavigation.filter('[data-' + metadata.tab + '^="' + tabPath + '/"]').eq(0),
$defaultNav = $module.filter('[data-' + metadata.tab + '^="' + tabPath + '/"]').eq(0),
defaultTab = $defaultNav.data(metadata.tab) || false
;
if( defaultTab ) {
@ -324,7 +329,7 @@
},
navElement: function(tabPath) {
tabPath = tabPath || activeTabPath;
return $tabNavigation.filter('[data-' + metadata.tab + '="' + tabPath + '"]');
return $module.filter('[data-' + metadata.tab + '="' + tabPath + '"]');
},
tabElement: function(tabPath) {
var
@ -376,44 +381,101 @@
;
}
},
/* standard module */
setting: function(name, value) {
if(value === undefined) {
module.debug('Changing setting', name, value);
if(value !== undefined) {
if( $.isPlainObject(name) ) {
$.extend(true, settings, name);
}
else {
settings[name] = value;
}
}
else {
return settings[name];
}
settings[name] = value;
},
internal: function(name, value) {
module.debug('Changing internal', name, value);
if(value !== undefined) {
if( $.isPlainObject(name) ) {
$.extend(true, module, name);
}
else {
module[name] = value;
}
}
else {
return module[name];
}
},
verbose: function() {
if(settings.verbose) {
module.debug.apply(this, arguments);
if(settings.verbose && settings.debug) {
module.performance.log(arguments[0]);
module.verbose = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
}
},
debug: function() {
var
output = [],
message = settings.moduleName + ': ' + arguments[0],
variables = [].slice.call( arguments, 1 ),
log = console.info || console.log || function(){}
;
log = Function.prototype.bind.call(log, console);
if(settings.debug) {
output.push(message);
log.apply(console, output.concat(variables) );
module.performance.log(arguments[0]);
module.debug = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
}
},
error: function() {
var
output = [],
errorMessage = settings.moduleName + ': ' + arguments[0],
variables = [].slice.call( arguments, 1 ),
log = console.warn || console.log || function(){}
;
log = Function.prototype.bind.call(log, console);
if(settings.debug) {
output.push(errorMessage);
output.concat(variables);
log.apply(console, output.concat(variables));
if(console.log !== undefined) {
module.error = Function.prototype.bind.call(console.error, console, settings.moduleName + ':');
}
},
performance: {
log: function(message) {
var
currentTime,
executionTime,
previousTime
;
if(settings.performance) {
currentTime = new Date().getTime();
previousTime = time || currentTime,
executionTime = currentTime - previousTime;
time = currentTime;
performance.push({
'Element' : element,
'Name' : message[0],
'Arguments' : message[1] || '',
'Execution Time' : executionTime
});
}
clearTimeout(module.performance.timer);
module.performance.timer = setTimeout(module.performance.display, 100);
},
display: function() {
var
title = settings.moduleName + ':',
totalTime = 0
;
time = false;
$.each(performance, function(index, data) {
totalTime += data['Execution Time'];
});
title += ' ' + totalTime + 'ms';
if(moduleSelector) {
title += ' \'' + moduleSelector + '\'';
}
if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {
console.groupCollapsed(title);
if(console.table) {
console.table(performance);
}
else {
$.each(performance, function(index, data) {
console.log(data['Name'] + ': ' + data['Execution Time']+'ms');
});
}
console.groupEnd();
}
performance = [];
}
},
invoke: function(query, context, passedArguments) {
@ -446,12 +508,16 @@
}
};
// check for invoking internal method
if(methodInvoked) {
invokedResponse = module.invoke(query, this, passedArguments);
if(instance === undefined) {
module.initialize();
}
invokedResponse = module.invoke(query);
}
// otherwise initialize
else {
if(instance !== undefined) {
module.destroy();
}
module.initialize();
}

3
node/src/files/components/semantic/views/feed.css

@ -51,7 +51,7 @@
border-radius: 50em;
}
.ui.feed .label + .content {
padding: 0em 1em 0em;
padding: 0.75em 1em 0em;
}
/* Content */
.ui.feed .content {
@ -67,7 +67,6 @@
}
/* Summary */
.ui.feed .content .summary {
margin-top: 0.75em;
color: rgba(0, 0, 0, 0.75);
}
.ui.feed .content .summary img {

4
node/src/files/components/semantic/views/item.css

@ -16,13 +16,13 @@
Items
---------------*/
.ui.items {
margin: 1em 0em;
margin: 1em 0em 0em;
}
.ui.items:first-child {
margin-top: 0em;
}
.ui.items:last-child {
margin-bottom: 0em;
margin-bottom: -1em;
}
/* Force Clearing */
.ui.items:after {

BIN
node/src/files/icons/icons-sketchy.woff

Binary file not shown.

8
node/src/files/overrides/idea.card.css

@ -106,13 +106,12 @@
.ui.idea.cards .card > .idea .image,
.ui.idea.card > .idea .image {
float: right;
margin: 2em 0em 2em 2em;
margin: 0em 0em 1em 1em;
padding: 5px;
width: 120px;
height: 82px;
width: 40%;
background-color: #EEEFEF;
background-color: #FFFFFF;
border: 1px solid #D9DCDD;
-moz-box-shadow: 2px 0px 4px rgba(0, 0, 0, 0.1);
@ -136,6 +135,7 @@
.ui.idea.cards .card > .meta,
.ui.idea.card > .meta {
clear: both;
border-top: 1px solid #DCDDDE;
padding: 1em;
}

1
src/collections/form.less

@ -54,7 +54,6 @@
color: #555555;
font-size: 0.875em;
line-height: 1.2;
}
/*--------------------

2
src/collections/grid.less

@ -158,7 +158,7 @@
}
@media only screen and (min-width : 2000px) {
.ui.responsive.grid {
padding: 0% 23%;
padding: 0% 25%;
}
.ui.responsive.grid > .column,
.ui.responsive.grid > .row > .column {

2
src/collections/menu.less

@ -1543,6 +1543,8 @@
---------------*/
.ui.menu.attached {
margin: 0rem;
-moz-border-radius: 0px;
-webkit-border-radius: 0px;
border-radius: 0px;

18
src/elements/button.less

@ -201,10 +201,10 @@
.ui.button.error.hover,
.ui.button.error.down {
cursor: default;
position: relative;
background-color: #D95C5C;
color: transparent;
position: relative !important;
background-color: #D95C5C !important;
color: transparent !important;
text-shadow: none;
-webkit-transition: all 0s linear;
@ -221,7 +221,7 @@
position: absolute;
left: 50%;
content: "Error";
margin-left: -1.2em;
margin-left: -1.8em;
color: #FFFFFF;
-webkit-animation: button-text 0.5s;
@ -242,9 +242,9 @@
.ui.button.success,
.ui.button.success.hover,
.ui.button.success.down {
position: relative;
background-color: #5BBD72;
color: transparent;
position: relative !important;
background-color: #5BBD72 !important;
color: transparent !important;
}
.ui.button.success .icon {
opacity: 1;
@ -258,7 +258,7 @@
position: absolute;
left: 50%;
content: "Success";
margin-left: -1.6em;
margin-left: -2em;
color: #FFFFFF;
-webkit-animation: button-text 0.5s;

2
src/elements/label.less

@ -105,7 +105,7 @@ a.ui.label:hover:before {
}
.ui.label .icon.close:hover {
opacity: 1;
opacity: 0.99;
}

7
src/elements/loader.less

@ -164,7 +164,12 @@
--------------------*/
.ui.inline.loader {
display: inline-block;
position: static;
vertical-align: middle;
margin: 0em;
}
.ui.inline.loader.active,
.ui.inline.loader.visible {
display: inline-block;
}

14
src/modules/dimmer.less

@ -121,9 +121,8 @@
*******************************/
.ui.dimmable.dimmed > :not(.dimmer) {
-webkit-filter: ~"blur(5px) grayscale(0.7);";
-moz-filter: ~"blur(5px) grayscale(0.7);";
filter: url(../vector/blur.svg#blur);
-webkit-filter: ~"blur(5px) grayscale(0.7)";
-moz-filter: ~"blur(5px) grayscale(0.7)";
}
body.dimmable.dimmed {
overflow: hidden;
@ -155,13 +154,8 @@ body.dimmable.dimmed {
position: fixed;
}
body.ui.dimmable.dimmed > :not(.dimmer){
-webkit-filter: ~"blur(15px) grayscale(0.7);";
-moz-filter: ~"blur(15px) grayscale(0.7);";
filter: url(../vector/blur.svg#blur);
-webkit-translate: rotateZ(0deg);
-moz-translate: rotateZ(0deg);
translate: rotateZ(0deg);
-webkit-filter: ~"blur(15px) grayscale(0.7)";
-moz-filter: ~"blur(15px) grayscale(0.7)";
}
/*--------------

38
src/modules/dropdown.js

@ -400,7 +400,6 @@ $.fn.dropdown = function(parameters) {
},
setting: function(name, value) {
module.debug('Changing setting', name, value);
if(value !== undefined) {
if( $.isPlainObject(name) ) {
$.extend(true, settings, name);
@ -414,7 +413,6 @@ $.fn.dropdown = function(parameters) {
}
},
internal: function(name, value) {
module.debug('Changing internal', name, value);
if(value !== undefined) {
if( $.isPlainObject(name) ) {
$.extend(true, module, name);
@ -427,24 +425,29 @@ $.fn.dropdown = function(parameters) {
return module[name];
}
},
verbose: function() {
if(settings.verbose && settings.debug) {
module.performance.log(arguments[0]);
module.verbose = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
}
},
debug: function() {
if(settings.debug) {
module.performance.log(arguments[0]);
module.debug = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
if(settings.performance) {
module.performance.log(arguments);
}
else {
module.debug = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
}
}
},
error: function() {
if(console.log !== undefined) {
module.error = Function.prototype.bind.call(console.error, console, settings.moduleName + ':');
verbose: function() {
if(settings.verbose && settings.debug) {
if(settings.performance) {
module.performance.log(arguments);
}
else {
module.verbose = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
}
}
},
error: function() {
module.error = Function.prototype.bind.call(console.log, console, settings.moduleName + ':');
},
performance: {
log: function(message) {
var
@ -508,14 +511,13 @@ $.fn.dropdown = function(parameters) {
$.each(query, function(depth, value) {
if( $.isPlainObject( instance[value] ) && (depth != maxDepth) ) {
instance = instance[value];
return true;
}
else if( instance[value] !== undefined ) {
found = instance[value];
return true;
}
module.error(errors.method);
return false;
else {
module.error(error.method);
}
});
}
if ( $.isFunction( found ) ) {

37
src/modules/modal.js

@ -148,22 +148,30 @@
modalType = (cantFit)
? 'absolute'
: 'fixed',
topCentering = (cantFit)
? '0'
: '50%',
offsetTop = (cantFit)
? (windowHeight / 8)
: -( (modalHeight - settings.closeSpacing) / 2),
finalPosition = ($modal.css('position') == 'absolute')
? offsetTop + $(window).prop('pageYOffset')
: offsetTop,
startPosition = finalPosition + settings.animationOffset
topCentering,
offsetTop,
finalPosition,
startPosition
;
$modal
.addClass(modalType)
;
topCentering = (cantFit)
? '0'
: '50%'
;
offsetTop = (cantFit)
? (windowHeight / 8)
: -( (modalHeight - settings.closeSpacing) / 2)
;
finalPosition = ($modal.css('position') == 'absolute')
? offsetTop + $(window).prop('pageYOffset')
: offsetTop
;
startPosition = finalPosition + settings.animationOffset;
// set top margin as offset
if($.fn.popIn !== undefined) {
$modal
.addClass(modalType)
.css({
display : 'block',
opacity : 0,
@ -175,7 +183,6 @@
}
else {
$modal
.addClass(modalType)
.css({
display : 'block',
opacity : 0,
@ -194,12 +201,10 @@
.hide()
;
}
console.log('zzz');
$.dimScreen({
context : settings.context,
duration : 0,
dim : function() {
console.log('aaa');
$(document)
.on('keyup.' + namespace, function(event) {
var
@ -214,8 +219,6 @@
}
})
;
console.log($closeButton);
console.log('attaching click');
$closeButton
.one('click', function() {
$modal.modal('hide');

4
src/modules/modal.less

@ -82,6 +82,10 @@
width: 50%;
}
.ui.modal.fixed {
position: fixed;
}
/* Static In-Page Modal */
.ui.modal.static {
display: block;

148
src/modules/tab.js

@ -13,7 +13,7 @@
var
settings = $.extend(true, {}, $.fn.tabNavigation.settings, parameters),
$tabNavigation = $(this),
$module = $(this),
$tabs = $(settings.context).find(settings.selector.tabs),
firstLoad = true,
@ -24,12 +24,17 @@
parameterArray,
historyEvent,
element = this,
time = new Date().getTime(),
performance = [],
moduleSelector = $module.selector || '',
className = settings.className,
metadata = settings.metadata,
namespace = settings.namespace,
errors = settings.errors,
instance = $tabNavigation.data('module'),
instance = $module.data('module'),
query = arguments[0],
methodInvoked = (instance !== undefined && typeof query == 'string'),
@ -42,7 +47,7 @@
module = {
initialize: function() {
module.debug('Initializing Tabs', $tabNavigation);
module.debug('Initializing Tabs', $module);
// attach history events
if(settings.history) {
if( $.address === undefined ) {
@ -62,19 +67,19 @@
}
}
// attach events if navigation wasn't set to window
if( !$.isWindow( $tabNavigation.get(0) ) ) {
$tabNavigation
if( !$.isWindow( $module.get(0) ) ) {
$module
.on('click.' + namespace, module.event.click)
;
}
$tabNavigation
$module
.data('module', module)
;
},
destroy: function() {
module.debug('Destroying tabs', $tabNavigation);
$tabNavigation
module.debug('Destroying tabs', $module);
$module
.off('.' + namespace)
;
},
@ -281,7 +286,7 @@
module.deactivate.tabs();
},
navigation: function() {
$tabNavigation
$module
.removeClass(className.active)
;
},
@ -300,7 +305,7 @@
get: {
initialPath: function() {
return $tabNavigation.eq(0).data(metadata.tab) || $tabs.eq(0).data(metadata.tab);
return $module.eq(0).data(metadata.tab) || $tabs.eq(0).data(metadata.tab);
},
// adds default tabs to tab path
defaultPathArray: function(tabPath) {
@ -308,7 +313,7 @@
},
defaultPath: function(tabPath) {
var
$defaultNav = $tabNavigation.filter('[data-' + metadata.tab + '^="' + tabPath + '/"]').eq(0),
$defaultNav = $module.filter('[data-' + metadata.tab + '^="' + tabPath + '/"]').eq(0),
defaultTab = $defaultNav.data(metadata.tab) || false
;
if( defaultTab ) {
@ -324,7 +329,7 @@
},
navElement: function(tabPath) {
tabPath = tabPath || activeTabPath;
return $tabNavigation.filter('[data-' + metadata.tab + '="' + tabPath + '"]');
return $module.filter('[data-' + metadata.tab + '="' + tabPath + '"]');
},
tabElement: function(tabPath) {
var
@ -376,44 +381,101 @@
;
}
},
/* standard module */
setting: function(name, value) {
if(value === undefined) {
module.debug('Changing setting', name, value);
if(value !== undefined) {
if( $.isPlainObject(name) ) {
$.extend(true, settings, name);
}
else {
settings[name] = value;
}
}
else {
return settings[name];
}
settings[name] = value;
},
internal: function(name, value) {
module.debug('Changing internal', name, value);
if(value !== undefined) {
if( $.isPlainObject(name) ) {
$.extend(true, module, name);
}
else {
module[name] = value;
}
}
else {
return module[name];
}
},
verbose: function() {
if(settings.verbose) {
module.debug.apply(this, arguments);
if(settings.verbose && settings.debug) {
module.performance.log(arguments[0]);
module.verbose = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
}
},
debug: function() {
var
output = [],
message = settings.moduleName + ': ' + arguments[0],
variables = [].slice.call( arguments, 1 ),
log = console.info || console.log || function(){}
;
log = Function.prototype.bind.call(log, console);
if(settings.debug) {
output.push(message);
log.apply(console, output.concat(variables) );
module.performance.log(arguments[0]);
module.debug = Function.prototype.bind.call(console.info, console, settings.moduleName + ':');
}
},
error: function() {
var
output = [],
errorMessage = settings.moduleName + ': ' + arguments[0],
variables = [].slice.call( arguments, 1 ),
log = console.warn || console.log || function(){}
;
log = Function.prototype.bind.call(log, console);
if(settings.debug) {
output.push(errorMessage);
output.concat(variables);
log.apply(console, output.concat(variables));
if(console.log !== undefined) {
module.error = Function.prototype.bind.call(console.error, console, settings.moduleName + ':');
}
},
performance: {
log: function(message) {
var
currentTime,
executionTime,
previousTime
;
if(settings.performance) {
currentTime = new Date().getTime();
previousTime = time || currentTime,
executionTime = currentTime - previousTime;
time = currentTime;
performance.push({
'Element' : element,
'Name' : message[0],
'Arguments' : message[1] || '',
'Execution Time' : executionTime
});
}
clearTimeout(module.performance.timer);
module.performance.timer = setTimeout(module.performance.display, 100);
},
display: function() {
var
title = settings.moduleName + ':',
totalTime = 0
;
time = false;
$.each(performance, function(index, data) {
totalTime += data['Execution Time'];
});
title += ' ' + totalTime + 'ms';
if(moduleSelector) {
title += ' \'' + moduleSelector + '\'';
}
if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {
console.groupCollapsed(title);
if(console.table) {
console.table(performance);
}
else {
$.each(performance, function(index, data) {
console.log(data['Name'] + ': ' + data['Execution Time']+'ms');
});
}
console.groupEnd();
}
performance = [];
}
},
invoke: function(query, context, passedArguments) {
@ -446,12 +508,16 @@
}
};
// check for invoking internal method
if(methodInvoked) {
invokedResponse = module.invoke(query, this, passedArguments);
if(instance === undefined) {
module.initialize();
}
invokedResponse = module.invoke(query);
}
// otherwise initialize
else {
if(instance !== undefined) {
module.destroy();
}
module.initialize();
}

3
src/modules/tab.less

@ -35,7 +35,8 @@
left: 50%;
content: 'Loading...';
text-indent: 0px;
margin-left: -32px;
text-indent: 5px;
color: rgba(0, 0, 0, 0.4);
width: 100%;

3
src/views/feed.less

@ -63,7 +63,7 @@
border-radius: 50em;
}
.ui.feed .label + .content {
padding: 0em 1em 0em;
padding: 0.75em 1em 0em;
}
/* Content */
@ -82,7 +82,6 @@
/* Summary */
.ui.feed .content .summary {
margin-top: 0.75em;
color: rgba(0, 0, 0, 0.75);
}
.ui.feed .content .summary img {

4
src/views/item.less

@ -21,13 +21,13 @@
---------------*/
.ui.items {
margin: 1em 0em;
margin: 1em 0em 0em;
}
.ui.items:first-child {
margin-top: 0em;
}
.ui.items:last-child {
margin-bottom: 0em;
margin-bottom: -1em;
}
/* Force Clearing */

Loading…
Cancel
Save