Bye-bye Prototype, long live jQuery!
- Breadcrumbs
- Posted at 2014-01-06 16:07 UTC / (4,007 days ago)
- No Comments
- Show map of post
Hi WordPress Community,
Long time no update. – I think I was kinda busy with my day job.
Anyway, it’s done. – After months of refactoring and adopting I’ve finally removed all instances of Prototype from bernhard-riedl.com, journeycalculator.com and my WordPress plugins.
These new versions of my WordPress plugins, which also include a face-lift of the user interface in the WordPress Admin Menu, are now based on jQuery and HTML5:
- GeneralStats v3.00
- TimeZoneCalculator v3.00
- TagPages v1.60 (no UI, so only other updates here)
- Featuring CountComments v1.40
If you find any bugs, please let me know.
As next step I plan to make the plugins fit for different display sizes with Responsive Web Design (RWD). This will be achieved by a combination of CSS Media Queries
@media screen and (max-width: 600px) {
.my_container {
display: none;
}
}
@media screen and (min-width: 601px) {
.my_container {
display: block;
}
}
and adoption to the viewport
function my_rwd_function() {
if (jQuery(window).width() < 960) {
/*
do something for devices with a smaller screen
*/
}
else {
/*
or something for desktop devices, hdtvs, etc.
*/
}
});
jQuery(document).ready(function() {
my_rwd_function();
});
jQuery(window).on('resize', function() {
my_rwd_function();
});
… with RWD the jQuery way
My Best,
Berny
Leave a Reply
You must be logged in to post a comment.