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
<div class="container-fluid profile-canopy"> | |
<div class="row"> | |
<div class="profile-canopy-bg bg-public"> | |
<img alt src="http://i.imgur.com/Dbqggm5.jpg"/> | |
<button ng-show="isAuthor()" ng-click="editBackground()" type="button" class="btn btn-primary btn-lg btn-bg-edit">Edit</button> | |
</div> | |
<div class="canopy-bg-edit hidden"> | |
<div class="profile-canopy-bg imageBox-bg"> | |
<div class="action"> | |
<input type="file" id="bg-file" style="float:left; width: 250px"> |
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
$('.bg-public').on('click', editBackground); | |
function initializeCropper(options){ | |
var cropper = $(options.imageBox).cropbox(options); | |
var originalImgSrc = options.imgSrc; | |
$(options.fileInput).on('change', function(){ | |
var reader = new FileReader(); | |
reader.onload = function(e) { | |
options.imgSrc = e.target.result; | |
cropper = $(options.imageBox).cropbox(options); |
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
{ | |
"meta": { | |
"code": 200 | |
}, | |
"data": [ | |
{ | |
"attribution": null, | |
"tags": [], | |
"type": "video", | |
"location": null, |
NewerOlder