Commit 4474d0ef authored by Prakhar Agarwal's avatar Prakhar Agarwal 🎯
Browse files

Merge branch 'emscripten' into rem_mark_high

parents 8d14776c 6706ea8b
......@@ -25,7 +25,10 @@
/** Rotate */
.rotate{
transform: rotate(180deg);
transition:0.5s ease all;
}
.rotate-transition {
transition: transform 0.5s linear;
}
.highlight-find{
......@@ -43,6 +46,7 @@
left: 0px;
z-index: 5;
color: #007BFF;
cursor: pointer;
}
#sidebar-files ul{
......
......@@ -79,7 +79,7 @@
</div>
<a id="sidebar-collapse" class="m-2" data-toggle="collapse" data-target="#sidebar">
<i class="fa fa-angle-double-left"></i>
<i class="fa fa-angle-double-left rotate-transition" onclick="rotate(this)"></i>
</a>
<!-- Canvas/Pd Windows -->
......@@ -92,9 +92,9 @@
<!-- Console window -->
<div class="card d-flex justify-content-between" id="console-window">
<div class="card-header d-flex justify-content-between">
<h5 class='h-100 w-25' onclick="rotate()">
<h5 class="h-100 w-25" id= "console-heading" onclick="rotate(this)">
<a data-toggle="collapse" data-parent="#windows" href="#console_bottom" class="d-flex align-items-center text-dark">Console
<i class="ml-2 fa fa-angle-double-down text-primary"S id="open-icon"></i>
<i class="ml-2 fa fa-angle-double-down text-primary rotate-transition"S id="open-icon"></i>
</a>
</h5>
......@@ -502,10 +502,15 @@
}
},
};
//Rotate Icon
function rotate() {
var icon = document.getElementById("open-icon");
icon.classList.toggle("rotate");
function rotate(elmnt) {
var cons_head = elmnt.id === "console-heading";
if (cons_head) {
document.getElementById("open-icon").classList.toggle("rotate");
} else {
elmnt.classList.toggle("rotate");
}
}
......@@ -567,16 +572,16 @@
});
</script>
<script>
$(document).ready(function(){
$("#sidebar").on('shown.bs.collapse', function () {
$("#sidebar-collapse").children("i").eq(0).addClass("fa-angle-double-left").removeClass("fa-angle-double-right")
})
$("#sidebar").on('hidden.bs.collapse', function () {
$("#sidebar-collapse").children("i").eq(0).addClass("fa-angle-double-right").removeClass("fa-angle-double-left")
})
});
</script>
<script>
$(document).ready(function(){
$(document).click(function(){
var popup = document.getElementById("popup");
if (popup) {
popup.parentNode.removeChild(popup);
}
});
});
</script>
</body>
</html>
......@@ -93,13 +93,13 @@ function load_menu_actions(){
minit("help-manual", {onclick:
function(){
pdbundle.pdgui.web_pd_doc_open("doc/1.manual", "index.htm")
pdbundle.pdgui.web_external_doc_open("https://puredata.info/docs/manuals/")
}
});
minit("help-intro", {onclick:
function(){
pdbundle.pdgui.web_pd_doc_open("doc/5.reference", "help-intro.pd")
pdbundle.pdgui.web_external_doc_open("http://puredata.info/docs/manuals/pdrefcards/pd-refcard-en.pdf/view")
}
});
......
......@@ -112,7 +112,7 @@ exports.menu = {
"number_web": { key: "3", modifiers: cmd_or_ctrl + "+Alt" },
"symbol_web": { key: "4", modifiers: cmd_or_ctrl + "+Alt" },
"comment_web": { key: "5", modifiers: cmd_or_ctrl + "+Alt" },
"dropdown_web": { key: "m", modifiers: cmd_or_ctrl + "+Shift+Alt" },
"dropdown_web": { key: "M", modifiers: cmd_or_ctrl + "+Shift+Alt" },
"bang_web": { key: "B", modifiers: cmd_or_ctrl + "+Shift+Alt" },
"toggle_web": { key: "T", modifiers: cmd_or_ctrl + "+Shift+Alt" },
"number2_web": { key: "N", modifiers: cmd_or_ctrl + "+Shift+Alt" },
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment