Skip to content

Commit

Permalink
Remove unnecessary classes and exit button
Browse files Browse the repository at this point in the history
  • Loading branch information
faucomte97 committed Aug 19, 2024
1 parent 2c255f1 commit e083f5e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 34 deletions.
16 changes: 0 additions & 16 deletions game/static/game/css/backgrounds.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,10 @@
background-color: #c90548;
}

.bg--hard {
background-color: #8967d3;
}

.bg--advanced {
background-color: #754fc8;
}

.bg--shared-levels {
background-color: #f6be00;
}

.bg--loops {
background-color: #3F3F3F;
}

.bg--loops-coming-soon {
background-color: #CBCBCB;
}

.bg--split-python {
background-color: #213CE7;
}
Expand Down
2 changes: 0 additions & 2 deletions game/static/game/image/python_den_header.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 0 additions & 6 deletions game/static/game/js/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -877,12 +877,6 @@ ocargo.Game.prototype._setupPythonTab = function () {
}.bind(this)
)

$('#header_exit_button').click(
function (e) {
window.location.href = RETURN_URL
}.bind(this)
)

$('#convert_from_blockly').click(
function (e) {
ocargo.pythonControl.appendCode(
Expand Down
19 changes: 9 additions & 10 deletions game/templates/game/game.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@
<div id="wrapper" class="unselectable game-background">
{% if level.pythonViewEnabled or level.pythonEnabled %}
<img src="{% static 'game/image/python_den_header.svg' %}" class="game-header">
<button class="header-exit-button" id="header_exit_button"></button>
{% endif %}
<span id="game_page"></span>

Expand Down Expand Up @@ -555,12 +554,12 @@ <h2 class="title"><img class="modal_image" src="{% static 'game/image/icons/shar
<path id="d" fill="#fff" stroke-width="0px" d="M68.91,70.86h-7.35c-.28,0-.48-.26-.42-.53l2.49-10.37c.11-.46-.49-.74-.77-.35l-11.46,16.1c-.2.28,0,.68.35.68h7.35c.28,0,.48.26.42.53l-2.49,10.37c-.11.46.49.74.77.35l11.46-16.1c.2-.28,0-.68-.35-.68Z"/>
<g id="e" isolation="isolate">
<g isolation="isolate">
<text
id="Text_percentage"
data-name="Text percentage"
<text
id="Text_percentage"
data-name="Text percentage"
font-family="LilitaOne, 'Lilita One'"
font-size="16px"
transform="translate(43.2 48.2)"
transform="translate(43.2 48.2)"
fill="#4ba0dd">
<tspan id="Text_percentage_value" x="0" y="0">100%</tspan>
</text>
Expand All @@ -585,13 +584,13 @@ <h2 class="title"><img class="modal_image" src="{% static 'game/image/icons/shar
s-.66,8.1-1.87,11.82
c-2.52,7.76-7.44,14.42-13.9,19.12Z"
/>
<circle
<circle
id="emptying_circle"
cx="59.79"
cy="59.79"
r="43.5"
stroke-width="11"
stroke="#213a47"
r="43.5"
stroke-width="11"
stroke="#213a47"
fill="transparent"
stroke-dasharray="273.18"
stroke-dashoffset="273.18"
Expand All @@ -617,4 +616,4 @@ <h2 class="title"><img class="modal_image" src="{% static 'game/image/icons/shar
})
</script>

{% endblock %}
{% endblock %}

0 comments on commit e083f5e

Please sign in to comment.