Cargo home Twitter Devlog

Change Landsat image resizing

Last Updated: Mar 26, 2013 10:50AM PDT
Landsat has three built-in options for displaying content. If you want to switch between them on a per-project basis, start by pasting the relevant script tag at the bottom of each project:
Do not scale this project at all:
 <script>$(document).ready(function() { $("fullscreen_option").attr("data","noscale"); formatProject("init"); });</script>
Scale this project fullscreen:
 <script>$(document).ready(function() { $("fullscreen_option").attr("data","fill"); formatProject("init"); });</script>
Fit this project inside the browser:
 <script>$(document).ready(function() { $("fullscreen_option").attr("data","fit"); formatProject("init"); });</script> 
These script tags will completely override your native settings - once you set a new view mode with one, all other projects you view will be resized that way. You will need to put a script tag into each project, instead of just the ones you want to display differently from the default.

Once you've added the script tag into each project, place this script tag into your Custom HTML:
 <script type="text/javascript">
function mediaRebind() {
    $('.project_media').unbind().click(function(e) {
            if( text_visible == true ) {

            } else if ( $(".active", this)[0].tagName.toLowerCase() != "object" ){

$(document).ready(function() {

$(document).bind("projectLoadComplete", function(e, pid){
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found