How it feels to learn JavaScript in 2016
“I need to display data on a page, not perform Sub Zero’s original MK fatality.” https://hackernoon.com/how-it-feels-to-learn-javascript-in-2016-d3a717dd577f#.67qnsecr5
“I need to display data on a page, not perform Sub Zero’s original MK fatality.” https://hackernoon.com/how-it-feels-to-learn-javascript-in-2016-d3a717dd577f#.67qnsecr5
“use strict”; require.config({ baseUrl: ‘static’, paths: { jquery: ‘bower_components/jquery/dist/jquery’, foundation: ‘bower_components/foundation/js/foundation’, }, shim: { ‘foundation’: { deps: [‘jquery’] }, } }); require([‘foundation’], function(f){ $(function(){ alert(1); }); });
There is a requirement from one of my project to insert video ads before the actual video gets played. There are ways to do it, one is to use JWPlayer and OVA plugin, or the other way is to write your own javascript to control the playback. In the following demo, shows how you can… Read More »
I have quite a few goals (ok, things) I want to achieve before I die, couple of those are writing an iOS app and writing a game. I have had an attempt to write a 1945 style vertical scroll shooting game in python using pygames, and I cannot remember why I stopped and the source… Read More »
The existing dialog plugin doesn’t have an option to close dialog on clicking modal overlay, how to add an option to provide the functionality? (function($){ var _init = $.ui.dialog.prototype._init; $.ui.dialog.prototype._init = function(){ var self = this; _init.apply(this,arguments); $(‘.ui-widget-overlay’).live(‘click’, function(){ if (self.options[‘overlay_close’]){ self.destroy(); } }); } })($);
Today I was writing some google map javascripts and had to implement the icons via OverlayView class, so I think I might share it in case anyone need some sample code. //”gmap” is an instance of the google map //creating the class to exntend the google map OverlayView class function MapLocationIcon(id,lat,lng,title,icon_class){ this.lat = lat; this.lng… Read More »
as title, should use .val() instead.
A while ago I was asked to create a infinite carousel widget on www.whitepages.co.nz Groupy is no longer part of Yellow and the widget will be taken off soon as you know I had 2 options, use plugins or roll my own. It’s personal, and I chose the latter. Simply because of the desire of… Read More »
If you have used JQuery, you should have already used something like this Ever wonder how to implement this? Let’s start: Have parameters to pass? No problem, see this