Browse Source

Added ability to add user defined classes to slides. closes #302

add `"classname": "myuniqueclassnamegoeshere"` to the date item and it will add that class to the slide created for that data.
pull/345/head
Zach Wise 12 years ago
parent
commit
1ac5d1ecec
  1. 90
      codekit-config.json
  2. 6
      compiled/js/timeline-min.js
  3. 13
      compiled/js/timeline.js
  4. 2
      source/js/Core
  5. 2
      source/js/VMM.Timeline.js

90
codekit-config.json

@ -200,16 +200,18 @@
"outputAbbreviatedPath" : "No Output Path",
"fileType" : 2048
},
"\/source\/js\/Core\/Language\/locale\/fo.js" : {
"\/source\/less\/Core\/Font\/AbrilFatface-Average.less" : {
"ignoreWasSetByUser" : 0,
"ignore" : 0,
"hidden" : 0,
"outputPathIsSetByUser" : 1,
"inputAbbreviatedPath" : "\/source\/js\/Core\/Language\/locale\/fo.js",
"outputPathIsSetByUser" : 0,
"inputAbbreviatedPath" : "\/source\/less\/Core\/Font\/AbrilFatface-Average.less",
"outputStyle" : 1,
"syntaxCheckerStyle" : 0,
"outputAbbreviatedPath" : "\/compiled\/js\/locale\/fo.js",
"fileType" : 64
"shouldRunBless" : 0,
"outputAbbreviatedPath" : "\/source\/less\/Core\/css\/AbrilFatface-Average.css",
"strictImports" : 0,
"fileType" : 1,
"debugStyle" : 0
},
"\/source\/jade\/sections\/example-head.jade" : {
"ignoreWasSetByUser" : 0,
@ -253,18 +255,16 @@
"outputAbbreviatedPath" : "No Output Path",
"fileType" : 2048
},
"\/source\/less\/Core\/Font\/AbrilFatface-Average.less" : {
"\/source\/js\/Core\/Language\/locale\/fo.js" : {
"ignoreWasSetByUser" : 0,
"ignore" : 0,
"hidden" : 0,
"outputPathIsSetByUser" : 0,
"inputAbbreviatedPath" : "\/source\/less\/Core\/Font\/AbrilFatface-Average.less",
"outputPathIsSetByUser" : 1,
"inputAbbreviatedPath" : "\/source\/js\/Core\/Language\/locale\/fo.js",
"outputStyle" : 1,
"shouldRunBless" : 0,
"outputAbbreviatedPath" : "\/source\/less\/Core\/css\/AbrilFatface-Average.css",
"strictImports" : 0,
"fileType" : 1,
"debugStyle" : 0
"syntaxCheckerStyle" : 0,
"outputAbbreviatedPath" : "\/compiled\/js\/locale\/fo.js",
"fileType" : 64
},
"\/dev_examples\/taylor\/fisher.jpg" : {
"ignoreWasSetByUser" : 0,
@ -727,16 +727,14 @@
"outputAbbreviatedPath" : "No Output Path",
"fileType" : 16
},
"\/dev_examples\/taylor\/sun.jpg" : {
"\/dev_examples\/embed_wide.html" : {
"ignoreWasSetByUser" : 0,
"ignore" : 0,
"hidden" : 0,
"ignore" : 1,
"hidden" : 1,
"outputPathIsSetByUser" : 0,
"inputAbbreviatedPath" : "\/dev_examples\/taylor\/sun.jpg",
"processed" : 0,
"outputAbbreviatedPath" : "\/dev_examples\/taylor\/sun.jpg",
"initialSize" : 47058,
"fileType" : 4096
"inputAbbreviatedPath" : "\/dev_examples\/embed_wide.html",
"outputAbbreviatedPath" : "No Output Path",
"fileType" : 2048
},
"\/compiled\/js\/storyjs-embed.js" : {
"ignoreWasSetByUser" : 0,
@ -749,14 +747,16 @@
"outputAbbreviatedPath" : "\/compiled\/js\/storyjs-embed-min.js",
"fileType" : 64
},
"\/dev_examples\/embed_wide.html" : {
"\/dev_examples\/taylor\/sun.jpg" : {
"ignoreWasSetByUser" : 0,
"ignore" : 1,
"hidden" : 1,
"ignore" : 0,
"hidden" : 0,
"outputPathIsSetByUser" : 0,
"inputAbbreviatedPath" : "\/dev_examples\/embed_wide.html",
"outputAbbreviatedPath" : "No Output Path",
"fileType" : 2048
"inputAbbreviatedPath" : "\/dev_examples\/taylor\/sun.jpg",
"processed" : 0,
"outputAbbreviatedPath" : "\/dev_examples\/taylor\/sun.jpg",
"initialSize" : 47058,
"fileType" : 4096
},
"\/source\/js\/Core\/Language\/locale\/it.js" : {
"ignoreWasSetByUser" : 0,
@ -1596,26 +1596,26 @@
"outputAbbreviatedPath" : "No Output Path",
"fileType" : 16
},
"\/dev_examples\/taylor\/velvet.jpg" : {
"\/dev_examples\/houston\/whlead.jpg" : {
"ignoreWasSetByUser" : 0,
"ignore" : 0,
"hidden" : 0,
"outputPathIsSetByUser" : 0,
"inputAbbreviatedPath" : "\/dev_examples\/taylor\/velvet.jpg",
"inputAbbreviatedPath" : "\/dev_examples\/houston\/whlead.jpg",
"processed" : 0,
"outputAbbreviatedPath" : "\/dev_examples\/taylor\/velvet.jpg",
"initialSize" : 77001,
"outputAbbreviatedPath" : "\/dev_examples\/houston\/whlead.jpg",
"initialSize" : 97988,
"fileType" : 4096
},
"\/dev_examples\/houston\/whlead.jpg" : {
"\/dev_examples\/taylor\/velvet.jpg" : {
"ignoreWasSetByUser" : 0,
"ignore" : 0,
"hidden" : 0,
"outputPathIsSetByUser" : 0,
"inputAbbreviatedPath" : "\/dev_examples\/houston\/whlead.jpg",
"inputAbbreviatedPath" : "\/dev_examples\/taylor\/velvet.jpg",
"processed" : 0,
"outputAbbreviatedPath" : "\/dev_examples\/houston\/whlead.jpg",
"initialSize" : 97988,
"outputAbbreviatedPath" : "\/dev_examples\/taylor\/velvet.jpg",
"initialSize" : 77001,
"fileType" : 4096
},
"\/source\/js\/Core\/Library\/bootstrap-tooltip.js" : {
@ -1812,15 +1812,6 @@
"outputAbbreviatedPath" : "No Output Path",
"fileType" : 16
},
"\/compiled\/css\/themes\/font\/Bevan-PotanoSans.css" : {
"ignoreWasSetByUser" : 0,
"ignore" : 0,
"hidden" : 0,
"outputPathIsSetByUser" : 0,
"inputAbbreviatedPath" : "\/compiled\/css\/themes\/font\/Bevan-PotanoSans.css",
"outputAbbreviatedPath" : "No Output Path",
"fileType" : 16
},
"\/compiled\/js\/locale\/nl.js" : {
"ignoreWasSetByUser" : 0,
"ignore" : 1,
@ -1832,6 +1823,15 @@
"outputAbbreviatedPath" : "\/compiled\/js\/locale\/nl-min.js",
"fileType" : 64
},
"\/compiled\/css\/themes\/font\/Bevan-PotanoSans.css" : {
"ignoreWasSetByUser" : 0,
"ignore" : 0,
"hidden" : 0,
"outputPathIsSetByUser" : 0,
"inputAbbreviatedPath" : "\/compiled\/css\/themes\/font\/Bevan-PotanoSans.css",
"outputAbbreviatedPath" : "No Output Path",
"fileType" : 16
},
"\/source\/js\/Core\/Language\/locale\/ko.js" : {
"ignoreWasSetByUser" : 0,
"ignore" : 0,

6
compiled/js/timeline-min.js vendored

File diff suppressed because one or more lines are too long

13
compiled/js/timeline.js

@ -5697,6 +5697,7 @@ if (typeof VMM.Slider != 'undefined') {
_enqueue = true,
_removeque = false,
_id = "slide_",
_class = 0,
timer = {pushque:"", render:"", relayout:"", remove:"", skinny:false},
times = {pushque:500, render:100, relayout:100, remove:30000};
@ -5704,7 +5705,17 @@ if (typeof VMM.Slider != 'undefined') {
this.enqueue = _enqueue;
this.id = _id;
element = VMM.appendAndGetElement(_parent, "<div>", "slider-item");
if (typeof data.classname != 'undefined') {
trace("HAS CLASSNAME");
VMM.Lib.addClass(element, data.classname);
} else {
trace("NO CLASSNAME");
trace(data);
}
c = {slide:"", text: "", media: "", media_element: "", layout: "content-container layout", has: { headline: false, text: false, media: false }};
/* PUBLIC
@ -7370,6 +7381,8 @@ if(typeof VMM != 'undefined' && typeof VMM.Timeline == 'undefined') {
_date.tag = data.date[i].tag;
_date.slug = data.date[i].slug;
_date.uniqueid = VMM.Util.unique_ID(7);
_date.classname = data.date[i].classname;
_dates.push(_date);
}

2
source/js/Core

@ -1 +1 @@
Subproject commit c8d198457a4ffc4e07a11e3e4a9332ec2b1921ac
Subproject commit a962f92f6d3fc78eb6367d59d0f1d587250ff9f7

2
source/js/VMM.Timeline.js

@ -632,6 +632,8 @@ if(typeof VMM != 'undefined' && typeof VMM.Timeline == 'undefined') {
_date.tag = data.date[i].tag;
_date.slug = data.date[i].slug;
_date.uniqueid = VMM.Util.unique_ID(7);
_date.classname = data.date[i].classname;
_dates.push(_date);
}

Loading…
Cancel
Save