Coder Social home page Coder Social logo

Comments (51)

mamamia5x avatar mamamia5x commented on August 15, 2024 2

Erase line 675 of js/snake.js file. @Joshii01

from javascript-snake.

patorjk avatar patorjk commented on August 15, 2024

@Joshii01 see @mamamia5x's comment above.

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

i seem to be having an issue, i removed line 675 which was this: elmAboutPanel.innerHTML = "<a href='http://patorjk.com/blog/software/' class='snake-link'>more patorjk.com apps</a> - <a href='https://github.com/patorjk/JavaScript-Snake' class='snake-link'>source code</a> - <a href='https://www.instagram.com/patorjk/' class='snake-link'>pat's instagram</a>"; but the social links still appear so what should i do?
image

from javascript-snake.

mamamia5x avatar mamamia5x commented on August 15, 2024

Make sure line 107 of Index.html says <script type="text/javascript" src="./js/snake.js"></script> and not
<script type="text/javascript" src="./js/min-snake.js"></script>

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

i checked, yet that didnt change anything it still shows the links
Here is a picture of the snake.js file on line 675 and also a picture of the index.html at line 107:
image
image

from javascript-snake.

mamamia5x avatar mamamia5x commented on August 15, 2024

The script looks right, is it saved right? Right something to the html file like add "test" to line 90.
If it saved and works, it should display test in front of the save button. If it works and the social links don't work, it might be a compiler issue.

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

yes it is saved, but it still shows the social links on the bottom.
here is a picture of the snake game and the html file at line 90:
image
image

from javascript-snake.

mamamia5x avatar mamamia5x commented on August 15, 2024

My version is here https://javascript-snake-8.mamamia5x.repl.co/
Copy and paste the content at view-source:https://javascript-snake-8.mamamia5x.repl.co/ into the html file and then copy and paste the content at https://javascript-snake-8.mamamia5x.repl.co/js/snake.js to the js/snake.js file.
Hopefully this solves the problem.

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

I copy pasted that but it still shows the links at the bottom of the page what should i do?
image

from javascript-snake.

mamamia5x avatar mamamia5x commented on August 15, 2024

I really don't know. . .
Mine works just fine https://javascript-snake-8.mamamia5x.repl.co/
Try using a different compiler (like repl.it)

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

ok! let me try that real quick

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

for some reason repl.it only shows this when i run the code:
image

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

@patorjk please help, i would really like to use this in my website

from javascript-snake.

mamamia5x avatar mamamia5x commented on August 15, 2024

Try replacing the index.html with the original file.

from javascript-snake.

mamamia5x avatar mamamia5x commented on August 15, 2024

if that doesn't work, try doing the original script file and then making line 675 a comment.

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

ok! give me a second while i try that

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

I tried that but it still would show the links on the bottom
image

from javascript-snake.

mamamia5x avatar mamamia5x commented on August 15, 2024

Go to here https://repl.it/@mamamia5x/JavaScript-Snake-8

from javascript-snake.

mamamia5x avatar mamamia5x commented on August 15, 2024

And then just fork it

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

ok!

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

I tried that but it doesnt seem to be working as well
image

from javascript-snake.

mamamia5x avatar mamamia5x commented on August 15, 2024

Are you on the right site, or are you looking at the official site? 'Cuz if you go to https://javascript-snake-8.mamamia5x.repl.co/ it won't show up.

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

I am looking at my site which i am running the code on

from javascript-snake.

mamamia5x avatar mamamia5x commented on August 15, 2024

What is the url to the site?

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

http://snakegame.selync.ga/?i=2

from javascript-snake.

mamamia5x avatar mamamia5x commented on August 15, 2024

Alright, it looks like the JS file is messed up. Can you reset the whole site to make it even to the github?

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

alright!

from javascript-snake.

mamamia5x avatar mamamia5x commented on August 15, 2024

In JavaScript-Snake-master/ go to script.js and then paste the content in https://javascript-snake-8.mamamia5x.repl.co/js/snake.js

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

alright!

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

done!

from javascript-snake.

mamamia5x avatar mamamia5x commented on August 15, 2024

Alright, it looks good!

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

what should i do know?

from javascript-snake.

mamamia5x avatar mamamia5x commented on August 15, 2024

What do you mean?

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

how do i remove the social links now?

from javascript-snake.

mamamia5x avatar mamamia5x commented on August 15, 2024

They're gone
image

from javascript-snake.

mamamia5x avatar mamamia5x commented on August 15, 2024

That's your site

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

did you do inspect element? because on my side it shows this:
image

from javascript-snake.

mamamia5x avatar mamamia5x commented on August 15, 2024

Are you on http://snakegame.selync.ga/?i=2

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

Yes

from javascript-snake.

mamamia5x avatar mamamia5x commented on August 15, 2024

It doesn't show the social icons, try going on a different browser

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

i only have google chrome right now

from javascript-snake.

mamamia5x avatar mamamia5x commented on August 15, 2024

Alright, but it works completely fine on my end.

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

are you sure you didnt inspect element? because how else would you be able to edit the code on my site?

from javascript-snake.

mamamia5x avatar mamamia5x commented on August 15, 2024

I reloaded the page, and it doesn't show anything.

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

weird, but may i ask how you edited the code on my site?

from javascript-snake.

mamamia5x avatar mamamia5x commented on August 15, 2024

I didn't (if I would edit it, I would use dev tools).
Open it up in a new tab. http://snakegame.selync.ga/?i=2

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

i did, it still shows the links on the bottom

from javascript-snake.

mamamia5x avatar mamamia5x commented on August 15, 2024

Idk what's happening then. Everythings working fine for me.

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

so is there anything i can do on my end to fix it?

from javascript-snake.

mamamia5x avatar mamamia5x commented on August 15, 2024

Probably not, or not anything that I know of.

from javascript-snake.

lilplayer6k avatar lilplayer6k commented on August 15, 2024

alright then! thanks for your help and your time! i will try and check the site on some other browsers later on.

from javascript-snake.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.