type: PIN
Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys
type: PIN
Consumer key: IQKbtAYlXLripLGPWd0HUA
function incrementFLoat($float){ | |
echo $float."\n"; | |
$decimal = strlen(strrchr($float, '.')) -1; | |
$factor = pow(10,$decimal); | |
$incremented = (($factor * $float) + 1) / $factor; | |
return $incremented; | |
} | |
function decrementFLoat($float){ | |
// get amount of decimals |
/* | |
* Add our Custom Fields to simple products | |
*/ | |
function mytheme_woo_add_custom_fields() { | |
global $woocommerce, $post; | |
echo '<div class="options_group">'; | |
// Text Field |
let content_security_policy = "script-src 'self'; object-src 'self' https://www.facebook.com/"; // for running in Chrome's JS console | |
/* Let’s see which Unicode 10.0 emojis Facebook already supports. | |
<https://github.com/Crissov/unicode-proposals/issues/254#issuecomment-284831620> */ | |
let myEmojis = new Map([ | |
['1f6f7', 'U+1F6F7 🛷 SLED'], | |
['1f6f8', 'U+1F6F8 🛸 FLYING SAUCER'], | |
['1f91f', 'U+1F91F 🤟 I LOVE YOU HAND SIGN'], | |
['1f928', 'U+1F928 🤨 FACE WITH ONE EYEBROW RAISED'], | |
['1f929', 'U+1F929 🤩 GRINNING FACE WITH STAR EYES'], | |
['1f92a', 'U+1F92A 🤪 GRINNING FACE WITH CRAZY EYES'], |
ICON="data:image/insert-your-base64-image-code-here"
attribute in the link;Done! If the favicon doesn’t show up, try clicking on the bookmarklet. Afterwards the changes should stick and you can delete the imported bookmarks folder. If you have sync activated the favicons on your bookmarklets will also show up on your other PC, Mac, smartphone etc.
$(window).on("scroll", function() { | |
var scrollHeight = $(document).height(); | |
var scrollPosition = $(window).height() + $(window).scrollTop(); | |
if ((scrollHeight - scrollPosition) / scrollHeight === 0) { | |
// when scroll to bottom of the page | |
} | |
}); |
var toast=function(msg){ | |
$("<div class='ui-loader ui-overlay-shadow ui-body-e ui-corner-all'><h3>"+msg+"</h3></div>") | |
.css({ display: "block", | |
opacity: 0.90, | |
position: "fixed", | |
padding: "7px", | |
"text-align": "center", | |
width: "270px", | |
left: ($(window).width() - 284)/2, | |
top: $(window).height()/2 }) |