All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scenario.story.js Maven / Gradle / Ivy

There is a newer version: 2.7.0
Show newest version
function doShow(file) {
    $('#story-result').attr('src', "scenario/" + file);
}

function initTree() {
    $('.tree li:has(ul)').addClass('parent_li').find(' > span').attr('title', 'Collapse this branch');
    $('.tree li.parent_li > span').on('click', function (e) {
        var children = $(this).parent('li.parent_li').find(' > ul > li');
        if (children.is(":visible")) {
            children.hide('fast');
            $(this).attr('title', 'Expand this branch').find(' > i').addClass('icon-plus-sign').removeClass('icon-minus-sign');
        } else {
            children.show('fast');
            $(this).attr('title', 'Collapse this branch').find(' > i').addClass('icon-minus-sign').removeClass('icon-plus-sign');

        }
        e.stopPropagation();
    });
}

function initStoryWindow() {
    var height = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
    var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
    $('#story-result').css("height", (height - 40));
    $('#story-result').css("width", (width - 400 - 100));
    $('#story-nav').css("height", (height - 40));
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy