This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Steam Price Comparison - Unpowered edition | |
// @version 2.3.3 | |
// @namespace http://steamunpowered.eu/comparison-script/ | |
// @description Displays prices from all regions in the Steam store and convert them to your local currency | |
// @copyright 2011+, KindDragon; 2010+, Zuko; Original author: Tor (http://code.google.com/p/steam-prices/) | |
// @homepage http://userscripts.org/scripts/show/149928 | |
// @download http://userscripts.org/scripts/source/149928.user.js | |
// @update http://userscripts.org/scripts/source/149928.meta.js | |
// @license MIT License; http://www.opensource.org/licenses/mit-license.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('input:text, textarea').each(function(){ | |
var $this = $(this); | |
$this.data('placeholder', $this.attr('placeholder')) | |
.focus(function(){$this.removeAttr('placeholder');}) | |
.blur(function(){$this.attr('placeholder', $this.data('placeholder'));}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addPlaceValue(nStr) | |
{ | |
nStr += ''; | |
x = nStr.split('.'); | |
x1 = x[0]; | |
x2 = x.length > 1 ? '.' + x[1] : ''; | |
var rgx = /(\d+)(\d{3})/; | |
while (rgx.test(x1)) { | |
x1 = x1.replace(rgx, '$1' + '.' + '$2'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* numeral.js language configuration | |
* language : Hungarian (hu) | |
* source : Peter Bakondy : https://github.com/pbakondy | |
* author : Horváth Tamás András | |
*/ | |
(function () { | |
var language = { | |
delimiters: { | |
thousands: '.', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body.modal-open, .modal-open .modal-open { | |
margin-right: -15px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.inputs').keydown(function (e) { | |
if (e.which === 13) { | |
var index = $('.inputs').index(this) + 1; | |
$('.inputs').eq(index).focus(); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('pll_get_post_types', 'my_pll_get_post_types'); | |
function my_pll_get_post_types($types) { | |
return array_merge($types, array('portfolio' => 'portfolio')); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your keymap | |
# | |
# Atom keymaps work similarly to style sheets. Just as style sheets use | |
# selectors to apply styles to elements, Atom keymaps use selectors to associate | |
# keystrokes with events in specific contexts. | |
# | |
# You can create a new keybinding in this file by typing "key" and then hitting | |
# tab. | |
# | |
# Here's an example taken from Atom's built-in keymap: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"remove-empty-rulesets": true, | |
"always-semicolon": true, | |
"color-case": "lower", | |
"block-indent": " ", | |
"color-shorthand": true, | |
"element-case": "lower", | |
"eof-newline": true, | |
"leading-zero": true, | |
"quotes": "double", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
function render_map($el) { | |
var $markers = $el.find('.marker'); | |
// Add custom data-zoom | |
window.gmapzoom = parseInt($markers.attr('data-zoom')); | |
if ( isNaN(window.gmapzoom) ) { window.gmapzoom = 16; } |
OlderNewer