Removing Survey Name and Exit & Clear on topsurveymenubar

Mehr
2 Monate 1 Tag her #160910 von snathan99
snathan99 erstellte das Thema Removing Survey Name and Exit & Clear on topsurveymenubar
Hello Guys:

Just wanted to post what I did to remove both Survey Name and Exit & Clear Option. Basically the topsurveymenubar.

In "scripts/template.js" file I added line:
$('#topsurveymenubar').detach();

Below is the block where I added it:
//topsurveymenubar

// Added by Senthil
$('#topsurveymenubar').detach();

var topsurveymenubarHeight = $('#topsurveymenubar').innerHeight();
var outerframeDistanceFromTop = topsurveymenubarHeight;


Looking at the views/startpage.pstpl file it appears this will also remove:
SAVE_LINKS & QUESTION_INDEX_MENU besides CLEARALL_LINKS

I have tested by survey and it looks all good.

I am still not sure how to remove the top margin where the bar was.

Bitte Anmelden um an der Konversation teilzunehmen.

Mehr
2 Monate 20 Stunden her #160917 von Joffm
Joffm antwortete auf das Thema: Removing Survey Name and Exit & Clear on topsurveymenubar
Hi, snathan,
did understand it? You are going to remove the entire top bar, where there is the survey name and the links to resume later or to clear and leave?

I just removed from "startpage.pstpl" the part
<nav class="navbar navbar-default navbar-fixed-top" id="topsurveymenubar">
        <div class="navbar-header col-xs-12 col-sm-6 col-lg-8">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <span class="navbar-brand col-xs-10 col-sm-10 col-sm-offset-2" >{SURVEYNAME}</span>
        </div>
 
        <div id="navbar" class="navbar-collapse collapse col-xs-12">
            <ul class="nav navbar-nav">
            </ul>
            <ul class="nav navbar-nav navbar-right">
                {SAVE_LINKS}
                {CLEARALL_LINKS}
                {QUESTION_INDEX_MENU}
            </ul>
        </div><!--/.nav-collapse -->
    </nav>


But of course there are always many different ways to do it.
Best regards
Joffm
Folgende Benutzer bedankten sich: LouisGac

Bitte Anmelden um an der Konversation teilzunehmen.

Jetzt loslegen!

Melden Sie sich jetzt an, und erstellen Sie in wenigen Minuten Ihre erste Umfrage.

Account einrichten

Abonnieren Sie unseren Newsletter

Abonnieren Sie unseren Newsletter für alle Neuigkeiten rund um LimeSurvey
captcha