palashbhowmick / mazify-3d Goto Github PK
View Code? Open in Web Editor NEWMaze editor and 3d maze vizualization using aframe and vue js
Home Page: https://palashbhowmick.github.io/mazify-3d
License: MIT License
Maze editor and 3d maze vizualization using aframe and vue js
Home Page: https://palashbhowmick.github.io/mazify-3d
License: MIT License
The current version of mazify-3d is not working in mobile device
at first THANKS for this great maze project!!!
my questions:
i´ve addet a simple timer and it starts, but i dont know how to let stop if i reach the finish...
i addet the timer to the controls.js:
/* TIMER TEST */
const watch = document.querySelector('#watch');
let milliseconds = 0;
let timer;
function startWatch() {
watch.classList.remove('paused');
clearInterval(timer);
timer = setInterval(() => {
milliseconds += 10;
let dateTimer = new Date(milliseconds);
watch.innerHTML =
('0' + dateTimer.getUTCHours()).slice(-2) + ':' +
('0' + dateTimer.getUTCMinutes()).slice(-2) + ':' +
('0' + dateTimer.getUTCSeconds()).slice(-2) + ':' +
('0' + dateTimer.getUTCMilliseconds()).slice(-3, -1);
}, 10);
};
function pauseWatch() {
watch.classList.add('paused');
clearInterval(timer);
};
function resetWatch() {
watch.classList.remove('paused');
clearInterval(timer);
milliseconds = 0;
watch.innerHTML = '00:00:00:00';
};
/* TIMER TEST */
for start and reset i simply addet :
export function reset() {
location.reload();
**resetWatch();**
}
export function cont() {
let finishDlgElm = document.querySelector("#finishDialog")
finishDlgElm.setAttribute("style", "display: none");
let menuDlgElm = document.querySelector("#menuDialog")
menuDlgElm.setAttribute("style", "display: none");
**startWatch();**
}
but how to stop?
adding the "pauseWatch();" after the "let finishDlgElm = ..... " doesnt work for me.
I think my work that I've done during a tutored project can be interesting.
Thank to this repository I've economized a lot of time
My pull request to add the random maze : #2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.