This file contains hidden or 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 rotateBase64Image90Degree(base64data) { | |
var canvas = document.getElementById("c"); | |
var ctx = canvas.getContext("2d"); | |
var image = new Image(); | |
image.src = base64data; | |
image.onload = function() { | |
canvas.width = image.height; | |
canvas.height = image.width; | |
ctx.rotate(90 * Math.PI / 180); |
This file contains hidden or 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
/* | |
* Smooth Scroll on Pageload | |
* Smooth scrolling on page load if URL have a hash | |
* Author: Franco Moya - @iamravenous | |
*/ | |
if (window.location.hash) { | |
var hash = window.location.hash; | |
if ($(hash).length) { |