Skip to content
Snippets Groups Projects
Select Git revision
  • 0a247a3d563d9e6002eb0e48ff2b6e35f9f25fb3
  • master default
  • renovate/django-split-settings-1.x
  • renovate/djangorestframework-3.x
  • main
  • 520-improve-trackmanager
  • 520-fix-scheduling
  • 520-akowner
  • 520-status
  • 520-message-resolved
  • 520-improve-scheduling-2
  • renovate/django-bootstrap5-24.x
  • 520-improve-submission
  • 520-improve-scheduling
  • 520-improve-wall
  • 520-fix-event-wizard-datepicker
  • 520-upgrades
  • renovate/tzdata-2023.x
  • renovate/django-5.x
  • renovate/fontawesomefree-6.x
  • renovate/sphinx-rtd-theme-2.x
  • renovate/sphinxcontrib-apidoc-0.x
22 results

__init__.py

Blame
  • Forked from KIF / AKPlanning
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    index.html 4.22 KiB
    {{ template "header" . }}
    
        <main class="flexcell gridcontainer">
          {{ $user := .User }}
          {{ range.Challenges }}
          <div id="{{.Name}}" class="{{if $user.HasSolvedChallenge . }}completed {{end}}{{if .AllDepsCompleted $user}}{{else}}not-available{{end}} challenge row-{{.Row}} col-{{.DepCount}}">
            <p class="chall-title">{{.Name}}</p>
            <p class="score firamono"><span class="pointicon"></span> {{.Points}}</p>
          </div>
          {{ end }}
    
          <script>
            var colnum = new Map();
            {{ range.Challenges}}
    colnum.set("{{.Name}}",{col: "{{.DepCount}}", row: "{{.Row}}"});
            {{end}}
            var bugreportCategories = ["Main Page" {{ range.Challenges }},"{{.Name}}"{{end}}];
            function start(){
              {{if .IsUser}}{{else}}document.getElementById("loginbutton").click();{{end}}
              {{ if .IsUser }}
                  {{ range.Challenges }}
                      {{ if .AllDepsCompleted $user}}
                        addChallEventListener("{{.Name}}", "{{.Points}}");
                      {{end}}
                  {{end}}
              {{ else }}
                {{ range.Challenges }}
                    document.getElementById({{.Name}}).addEventListener("click", function () {
                        document.getElementById("loginbutton").click();
                    });
                {{ end }}
              {{ end }}
              connectAll();
      {{if .HasSelectedChallengeID }} document.getElementById("{{.SelectedChallengeID}}").click();{{else}}{{end}}
            }
            function connectAll(){
              var i = 0;
              var colors =
              ["#262626",
              "#4d4d4d",
              "#808080",
              "#606060",
              "#3b3b3b"];
              var svg1 = document.getElementById("svg1");
    
              var color = new Map();
              {{ range.Challenges}}
              {{if .DepIDs}}
              {{if $user.HasSolvedChallenge .}}
              color.set({{.Name}},"#14b967");
              {{else}}
              color.set({{.Name}},colors[i % (colors.length-1)]);
              {{end}}
              connectElementss(svg1 , {{.Name}}, {{.DepIDs}},color.get({{.Name}}));
              i++;
                {{end}}
                {{end}}
            }
    
          </script>
        </main>
        <div id="svgContainer"><svg id="svg1" width="0" height="0">
          </svg></div>
        <dialog id="detailview">
          <span class="mdi mdi-close closebtn" id="detailclosebutton"></span>
          <h1 id="detailtitle"></h1>
          <input type="button" id="bugreport"></input>
          <h3 class="detailmeta">
            <div class="flexcell flex-left">
              <a id="challuri" class="challengelink" style="display: none;">Zur Challenge!</a>
            </div>
            <div class="flexcell flex-center">
              <span class="pointicon"></span><span id="detailpoints" class="firamono"></span>
            </div>
            <div class="flexcell flex-right">
              <a id="challauthor"></a>
              <span class="mdi mdi-account"></span>
            </div>
          </h3>
          </br>
          <div id="detaildescription"></div>
          <div id="flagsubmitmsg"></div>
          <div id="detailform">
            <input type="text" placeholder="FOSS{**********}" id="flaginput" class="firamono flexcell"/>
            <input class="button flagsubmitbutton" type="submit" id="flagsubmitbutton" value="Submit Flag"/>
          </div>
          <div id="solutiondiv">
            <button class="button" id="solutionbutton" value="Show Reccomended Solution">Show Reccomended Solution</button>
            <div id="solutioninnerdiv"></div>
          </div>
          <span id="checkloading" class="loadingbar" style="display: none;"></span>
        </dialog>
    
        <dialog id="bugreportview">
          <span class="mdi mdi-close closebtn" id="bugreportclosebutton"></span>
          <h1>Report Bug</h1>
          <div id="bugreportform">
            <select id="bugreportcategory" ></select>
            <input type="text" placeholder="Das soll so ja nicht" id="subjectinput" class="firamono flexcell" style="width: 30vw;"/>
            </br>
            <textarea placeholder="Alles kaputt..." id="contentinput" class="firamono flexcell" style="height: 30vh; width: 30vw; resize: none;"></textarea>
            </br>
            <input class="button" type="submit" id="bugreportbutton" value="Send report" style="float: right"/>
          </div>
          <span id="bugloading" class="loadingbar" style="display: none;"></span>
        </dialog>
    
    {{ template "footer" . }}