Skip to content
Snippets Groups Projects
Commit 04d60d8f authored by lowercasedonkey's avatar lowercasedonkey
Browse files

Show number of assigned slaves on tabs

parent fb0e660f
No related branches found
No related tags found
1 merge request!4031Show number of assigned slaves on tabs
...@@ -106,20 +106,95 @@ __''MAIN MENU''__    //[[Summary Options]]// ...@@ -106,20 +106,95 @@ __''MAIN MENU''__    //[[Summary Options]]//
<body> <body>
<div class="tab"> <div class="tab">
<<set _penthouseSlaves = 0>>
<<if $useSlaveSummaryOverviewTab == 1>> <<if $useSlaveSummaryOverviewTab == 1>>
<button class="tablinks" onclick="opentab(event, 'overview')" id="tab overview">Overview</button> <button class="tablinks" onclick="opentab(event, 'overview')" id="tab overview">Overview</button>
<</if>> <</if>>
<button class="tablinks" onclick="opentab(event, 'resting')" id="tab resting">Resting</button> <button class="tablinks" onclick="opentab(event, 'resting')" id="tab resting">
<button class="tablinks" onclick="opentab(event, 'stay confined')" id="tab stay confined">Confined</button> Resting
<button class="tablinks" onclick="opentab(event, 'take classes')" id="tab take classes">Students</button> <<if $JobIDArray['rest'].length > 0>>
<button class="tablinks" onclick="opentab(event, 'please you')" id="tab please you">Fucktoys</button> <<print " (" + $JobIDArray['rest'].length + ")">>
<button class="tablinks" onclick="opentab(event, 'whore')" id="tab whore">Whores</button> <<set _penthouseSlaves += $JobIDArray['rest'].length>>
<button class="tablinks" onclick="opentab(event, 'serve the public')" id="tab serve the public">Public Servants</button> <</if>>
<button class="tablinks" onclick="opentab(event, 'be a servant')" id="tab be a servant">Servants</button> </button>
<button class="tablinks" onclick="opentab(event, 'get milked')" id="tab milked">Cows</button> <button class="tablinks" onclick="opentab(event, 'stay confined')" id="tab stay confined">
<button class="tablinks" onclick="opentab(event, 'work a glory hole')" id="tab work a glory hole">Gloryhole</button> Confined
<button class="tablinks" onclick="opentab(event, 'be a subordinate slave')" id="tab be a subordinate slave">Subordinate slaves</button> <<if $JobIDArray['stay confined'].length > 0>>
<button class="tablinks" onclick="opentab(event, 'all')" id="tab all">All</button> <<print " (" + $JobIDArray['stay confined'].length + ")">>
<<set _penthouseSlaves += $JobIDArray['stay confined'].length>>
<</if>>
</button>
<button class="tablinks" onclick="opentab(event, 'take classes')" id="tab take classes">
Students
<<if $JobIDArray['take classes'].length > 0>>
<<print " (" + $JobIDArray['take classes'].length + ")">>
<<set _penthouseSlaves += $JobIDArray['take classes'].length>>
<</if>>
</button>
<button class="tablinks" onclick="opentab(event, 'please you')" id="tab please you">
Fucktoys
<<if $JobIDArray['please you'].length > 0>>
<<print " (" + $JobIDArray['please you'].length + ")">>
<<set _penthouseSlaves += $JobIDArray['please you'].length>>
<</if>>
</button>
<button class="tablinks" onclick="opentab(event, 'whore')" id="tab whore">
Whores
<<if $JobIDArray['whore'].length > 0>>
<<print " (" + $JobIDArray['whore'].length + ")">>
<<set _penthouseSlaves += $JobIDArray['whore'].length>>
<</if>>
</button>
<button class="tablinks" onclick="opentab(event, 'serve the public')" id="tab serve the public">
Public Servants
<<if $JobIDArray['serve the public'].length > 0>>
<<print " (" + $JobIDArray['serve the public'].length + ")">>
<<set _penthouseSlaves += $JobIDArray['serve the public'].length>>
<</if>>
</button>
<button class="tablinks" onclick="opentab(event, 'be a servant')" id="tab be a servant">
Servants
<<if $JobIDArray['be a servant'].length > 0>>
<<print " (" + $JobIDArray['be a servant'].length + ")">>
<<set _penthouseSlaves += $JobIDArray['be a servant'].length>>
<</if>>
</button>
<button class="tablinks" onclick="opentab(event, 'get milked')" id="tab milked">
Cows
<<if $JobIDArray['get milked'].length > 0>>
<<print " (" + $JobIDArray['get milked'].length + ")">>
<<set _penthouseSlaves += $JobIDArray['get milked'].length>>
<</if>>
</button>
<button class="tablinks" onclick="opentab(event, 'work a glory hole')" id="tab work a glory hole">
Gloryhole
<<if $JobIDArray['work a glory hole'].length > 0>>
<<print " (" + $JobIDArray['work a glory hole'].length + ")">>
<<set _penthouseSlaves += $JobIDArray['work a glory hole'].length>>
<</if>>
</button>
<button class="tablinks" onclick="opentab(event, 'be a subordinate slave')" id="tab be a subordinate slave">
Subordinate slaves
<<if $JobIDArray['be a subordinate slave'].length > 0>>
<<print " (" + $JobIDArray['be a subordinate slave'].length + ")">>
<<set _penthouseSlaves += $JobIDArray['be a subordinate slave'].length>>
<</if>>
</button>
<button class="tablinks" onclick="opentab(event, 'all')" id="tab all">
All
<<if _penthouseSlaves > 0>>
<<if $Headgirl != 0>>
<<set _penthouseSlaves++>>
<</if>>
<<if $Recruiter != 0>>
<<set _penthouseSlaves++>>
<</if>>
<<if $Bodyguard != 0>>
<<set _penthouseSlaves++>>
<</if>>
<<print " (" + _penthouseSlaves + ")">>
<</if>>
</button>
</div> </div>
<div id="overview" class="tabcontent"> <div id="overview" class="tabcontent">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment