inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Dec 7, 2015 5:32:37 GMT -8
1.1.0 has been submitted to the library. This version will be required for a new plugin that will be released soon, so wanted to get it out there now. - Improved some selectors. - Added yootil.suffix method - Added yootil.month method - Added yootil.day method - Added yootil.get.messages method - Added yootil.get.user_messages method - Added yootil.remove.messages method - Added yootil.remove.user_messages method - Removed yootil.sound completely now - Plugin bar has been reworked and no longer relies on the PB Bar. Will post once library has updated.
|
|
Former Member
inherit
guest@proboards.com
225992
0
Nov 29, 2024 17:18:16 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Dec 7, 2015 7:01:10 GMT -8
I augmented the yootil module to include a DateTime object, just for dookies and giggles while trying to learn its API. It is far from complete :/
yootil = (function(oldNS){ try{ var now = new Date();
oldNS.dateTime = { now : now, date_full : now.toLocaleDateString(), day_index : now.getDay(), day_map : ['sun','mon','tue','wed','thur','fri','sat'], day : now.getDate(), month : now.getMonth() + 1, year : now.getFullYear(), format : now.toJSON(), time : now.toTimeString().split(' ')[0], /** * <example> * var now = new Date(); * yootil.dateTime.time_ago(now); // 2 minutes ago * </example> * @param {object} A new Date() object * @return {string} a time ago string **/ time_ago : function(date){ var seconds, interval = 0;
seconds = ~~((new Date() - date) / 1000);
interval = ~~(seconds / 31536000);
if (interval >= 1) {
return interval + " years ago";
}
interval = ~~(seconds / 2592000);
if (interval >= 1) {
return interval + " months ago";
}
interval = ~~(seconds / 86400);
if (interval >= 1) {
return interval + " days ago";
}
interval = ~~(seconds / 3600);
if (interval >= 1) {
return interval + " hours ago";
}
interval = ~~(seconds / 60);
if (interval >= 1) {
return interval + " minutes ago";
}
return ~~(seconds) + " seconds ago";
}, /**
* <example>
* if(yootil.dateTime.dayOfTheWeek()) // false
* if(yootil.dateTime.dayOfTheWeek("mon")) // true
* if(yootil.dateTime.dayOfTheWeek("wed")) // false
* </example>
* @param {string} day to test ['sun', 'mon' etc..]
* @return {boolean} true if day matches index, false otherwise
**/
dayOfTheWeek : function( day ){
if(!day){
return false;
}
return ( this.day_map.indexOf( day ) === this.day_index );
},
};
} catch(e){console.error(e.message); } finally{ return oldNS; }
}(yootil));
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Dec 10, 2015 16:56:41 GMT -8
1.1.0 is now available from the library. - Improved some selectors. - Added yootil.suffix method - Added yootil.month method - Added yootil.day method - Added yootil.get.messages method - Added yootil.get.user_messages method - Added yootil.remove.messages method - Added yootil.remove.user_messages method - Removed yootil.sound completely now - Plugin bar has been reworked and no longer relies on the PB Bar. New options to position it. API docs updated as well: yootil.pixeldepth.net
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Dec 17, 2015 11:59:00 GMT -8
1.1.1 - Fixed Queue not nullifying the internal interval property.
Available in the library now.
|
|
inherit
224902
0
Feb 15, 2017 12:50:39 GMT -8
Matt
2,940
September 2015
mattyboo1
|
Post by Matt on Feb 28, 2016 12:28:22 GMT -8
Hi PeterI think I mentioned this before but can't remember completely, the yootil bar does not exist on my forum.
|
|
inherit
217348
0
Jul 27, 2022 7:26:44 GMT -8
Lynx
5,849
January 2015
msg
|
Post by Lynx on Feb 28, 2016 12:54:16 GMT -8
Matt, Try setting its location to Bottom Left. Another user had theirs set to Top Left and didn't show, but showed up when they placed it at Bottom Left. Be sure to save after making the change. Refresh the page and see if it shows up.
|
|
inherit
224902
0
Feb 15, 2017 12:50:39 GMT -8
Matt
2,940
September 2015
mattyboo1
|
Post by Matt on Feb 28, 2016 13:56:06 GMT -8
Lynx It's set to the bottom left, but still is not showing up.
|
|
inherit
224902
0
Feb 15, 2017 12:50:39 GMT -8
Matt
2,940
September 2015
mattyboo1
|
Post by Matt on Feb 28, 2016 15:39:27 GMT -8
I can now access the yootil bar, thanks for your help Lynx
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Feb 29, 2016 4:01:53 GMT -8
Yeah, known bug. Will be fixed for v6 if Yootil is still needed. For now, I'm being lazy and doing nothing
|
|
Former Member
inherit
guest@proboards.com
222576
0
Nov 29, 2024 17:18:17 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Mar 1, 2016 16:48:46 GMT -8
Peter hi i'v had this on my sites for a while and im not sure what it does ? someone said i need it make other plugins work, but im not seeing the tool bar thingy at the bottom. is this something i need or im missing ?
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Mar 2, 2016 3:59:10 GMT -8
@joecool111,
Depends on if plugins are adding to the bar.
Try changing your settings for where the bar displays. There seems to be a small bug where it doesn't display, not sure if that is for people who upgraded or done a fresh install.
|
|
Former Member
inherit
guest@proboards.com
222576
0
Nov 29, 2024 17:18:17 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Mar 2, 2016 4:31:42 GMT -8
@joecool111 , Depends on if plugins are adding to the bar. Try changing your settings for where the bar displays. There seems to be a small bug where it doesn't display, not sure if that is for people who upgraded or done a fresh install. no I've tried all settings an its doesnt appear, like i say its something I've never seen or had so im not missing anything. or am i ? idk is it important this tool bar ? and what does it do ?
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Mar 2, 2016 10:46:35 GMT -8
@joecool111,
Yeah, it's important if you are using certain plugins, as some of the features can only be accessed via the bar.
Link me to your forum, I'll have to create an account and see.
|
|
Former Member
inherit
guest@proboards.com
222576
0
Nov 29, 2024 17:18:17 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Mar 2, 2016 11:02:43 GMT -8
@joecool111 , Yeah, it's important if you are using certain plugins, as some of the features can only be accessed via the bar. Link me to your forum, I'll have to create an account and see. linki've never seen it on my other sites either. this is just one of them. thank you
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Mar 31, 2016 14:33:40 GMT -8
@joecool111,
Sorry for the delay in responding.
I hope to look at Yootil this weekend, as there is a bug with the bar not showing up under certain situations. So yeah, it's not just you.
|
|