Removing Survey Name and Exit & Clear on topsurveymenubar

More
3 weeks 10 hours ago #160910 by snathan99
snathan99 created the topic: 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.

Please Log in to join the conversation.

More
3 weeks 2 hours ago #160917 by Joffm
Joffm replied the topic: 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
The following user(s) said Thank You: LouisGac

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!