Goldmine Agencies
2 Likes
4 Followers
if(contentTypeSespage == 'photo') {
scriptJquery('.sespage_photo_update_popup_header').html('Click to Take Photo');
scriptJquery('.capturePhoto').html('Take Photo');
scriptJquery('.sespage_select_photo_popup_header').html('Select a photo');
}
else {
scriptJquery('.sespage_photo_update_popup_header').html('Click to Take Cover Photo');
scriptJquery('.capturePhoto').html('Take Cover Photo');
scriptJquery('.sespage_select_photo_popup_header').html('Select a Cover photo');
}
Webcam.set({
width: 320,
height: 240,
image_format:'jpeg',
jpeg_quality: 90
});
Webcam.attach('#sespage_camera');
});
function hideProfilePhotoUpload(){
if(typeof Webcam != 'undefined')
Webcam.reset();
canPaginatePageNumber = 1;
scriptJquery('#sespage_popup_cam_upload').hide();
scriptJquery('#sespage_popup_existing_upload').hide();
if(typeof Webcam != 'undefined'){
scriptJquery('.slimScrollDiv').remove();
scriptJquery('.sespage_photo_update_popup_content').html('
');
}
}
function take_snapshot() {
// take snapshot and get image data
Webcam.snap(function(data_uri) {
Webcam.reset();
scriptJquery('#sespage_popup_cam_upload').hide();
// upload results
scriptJquery('.sespage_cover_inner').append('
');
Webcam.upload( data_uri, en4.core.baseUrl+'sespage/profile/upload-'+contentTypeSespage+'/id/8' , function(code, text) {
response = scriptJquery.parseJSON(text);
scriptJquery('#sespage_cover_loading').remove();
scriptJquery('#sespage_'+contentTypeSespage+'_id').attr('src', response.file);
scriptJquery('#'+contentTypeSespage+'Changesespage').html('
'+en4.core.language.translate('Change '+contentTypeSespage == "cover"?"Cover":""+' Photo'));
scriptJquery('#sespage_'+contentTypeSespage+'_photo_reposition').css('display','block');
scriptJquery('#'+contentTypeSespage+'Removesespage').css('display','block');
scriptJquery('#sespage_'+contentTypeSespage+'_id_main').attr('src', response.file);
scriptJquery('#photoChangesespage_8').html('
'+en4.core.language.translate('Change Photo')); scriptJquery('#photoRemovesespage_8').css('display','block');
} );
});
}
scriptJquery(document).ready(function(){
var htmlElement = scriptJquery("body");
htmlElement.addClass('sespage_cover_full');
});
// scriptJquery(document).ready(function(e){
// scriptJquery('#main_tabs').children().eq(0).find('a').trigger('click');
// });
-->
Locked Page
Seems you entered wrong password click here
to enter password again.