This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#151 2012-10-27 18:03:46

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: Scratch 2.0 Projects' Viewer Programmed In Javascript and HTML5

Pitusky12 wrote:

GP1 wrote:

MathWizz wrote:


Then what is the point of creating another one?
Are you targeting some other system that mine doesn't work on?

GOT IT! After supporting HTML5 users with Canvas, we will work on adding HTML4 support. It is possible, but jQuery would be involved with it.

Yeah!  big_smile

AND now ours has a full screen mode!! Just like the Scratch Flash player!


I am currently http://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=imagehttp://blocks.scratchr.org/API.php?user=GP1&action=onlineStatus&type=text and I finally got over 1000 posts.

Offline

 

#152 2012-10-27 20:30:20

al-x
New Scratcher
Registered: 2012-10-03
Posts: 100+

Re: Scratch 2.0 Projects' Viewer Programmed In Javascript and HTML5

GP1 wrote:

Pitusky12 wrote:

GP1 wrote:


GOT IT! After supporting HTML5 users with Canvas, we will work on adding HTML4 support. It is possible, but jQuery would be involved with it.

Yeah!  big_smile

AND now ours has a full screen mode!! Just like the Scratch Flash player!

okay I made the graphics a little better and tried to make it so once you click the fullscreen button it changes to the exitfullscreen button but I failed. you can get it at jscratch.weebly.com I can't use github it just won't work srry but take a look at it.

Offline

 

#153 2012-10-27 21:04:52

Pitusky12
Scratcher
Registered: 2011-09-21
Posts: 500+

Re: Scratch 2.0 Projects' Viewer Programmed In Javascript and HTML5

al-x wrote:

GP1 wrote:

Pitusky12 wrote:


Yeah!  big_smile

AND now ours has a full screen mode!! Just like the Scratch Flash player!

okay I made the graphics a little better and tried to make it so once you click the fullscreen button it changes to the exitfullscreen button but I failed. you can get it at jscratch.weebly.com I can't use github it just won't work srry but take a look at it.

but is jscratch.weebly connected to github?


Scratch 2.0 Beta Tester  wink

Offline

 

#154 2012-10-27 21:36:25

Pitusky12
Scratcher
Registered: 2011-09-21
Posts: 500+

Re: Scratch 2.0 Projects' Viewer Programmed In Javascript and HTML5

changing some features in jscratch.tk


Scratch 2.0 Beta Tester  wink

Offline

 

#155 2012-10-27 22:21:13

Pitusky12
Scratcher
Registered: 2011-09-21
Posts: 500+

Re: Scratch 2.0 Projects' Viewer Programmed In Javascript and HTML5

For the player if someone wants to load their own project in the player we could use this :
<form action="form-handler.php" method="post" enctype="multipart/form-data">
        <div>
                <input id="myfile" name="myfile" type="file">
                <input value="Upload" type="submit">
        </div>
</form>
Can Someone here make it ios compatible and jQuery

Last edited by Pitusky12 (2012-10-27 22:24:14)


Scratch 2.0 Beta Tester  wink

Offline

 

#156 2012-10-27 22:50:55

Pitusky12
Scratcher
Registered: 2011-09-21
Posts: 500+

Re: Scratch 2.0 Projects' Viewer Programmed In Javascript and HTML5

I uploaded a new folder and a .php file with nothing in it for the player.
All the player code goes in there.I put a upload and submit button.When you click submit it will redirect you to formhandler.php and load the loader with the project.


Scratch 2.0 Beta Tester  wink

Offline

 

#157 2012-10-27 23:38:37

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: Scratch 2.0 Projects' Viewer Programmed In Javascript and HTML5

Pitusky12 wrote:

For the player if someone wants to load their own project in the player we could use this :
<form action="form-handler.php" method="post" enctype="multipart/form-data">
        <div>
                <input id="myfile" name="myfile" type="file">
                <input value="Upload" type="submit">
        </div>
</form>
Can Someone here make it ios compatible and jQuery

First of all, since this player is  in HTML5, we can use drag-n-drop file uploads. But right now, my priority is getting the player up and running. Then I'll work on the .sb2 decoder in PHP (that part wont take long). THEN Ill work on the drag-n-drop uploads. Thats what im going  to do, but you can work on any part you like.

And, sorry to say, that wont work on iOS, because Apple doesnt allow file downloads. And jQuery, yes, I have found a solution. But we should prioritize the actual player first.


I am currently http://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=imagehttp://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=text and I finally got over 1000 posts.

Offline

 

#158 2012-10-27 23:42:01

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: Scratch 2.0 Projects' Viewer Programmed In Javascript and HTML5

Pitusky12 wrote:

I uploaded a new folder and a .php file with nothing in it for the player.
All the player code goes in there.I put a upload and submit button.When you click submit it will redirect you to formhandler.php and load the loader with the project.

But i need an HTML file, for now. I need it for local debugging, THEN ill switch over to the PHP file. Otherwise, i would have to push everytime i change something, so it would be slow and difficult.


I am currently http://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=imagehttp://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=text and I finally got over 1000 posts.

Offline

 

#159 2012-10-27 23:44:01

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: Scratch 2.0 Projects' Viewer Programmed In Javascript and HTML5

al-x wrote:

GP1 wrote:

Pitusky12 wrote:


Yeah!  big_smile

AND now ours has a full screen mode!! Just like the Scratch Flash player!

okay I made the graphics a little better and tried to make it so once you click the fullscreen button it changes to the exitfullscreen button but I failed. you can get it at jscratch.weebly.com I can't use github it just won't work srry but take a look at it.

The GitHub program only works on Windows 7 and Windows 8. But you can use Eclipse instead.


I am currently http://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=imagehttp://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=text and I finally got over 1000 posts.

Offline

 

#160 2012-10-28 00:19:35

Pitusky12
Scratcher
Registered: 2011-09-21
Posts: 500+

Re: Scratch 2.0 Projects' Viewer Programmed In Javascript and HTML5

GP1:Okay,i know it wont work with ios the code i posted but somehow we could manage to make it open files from Box Or Dropbox app from ios.


Scratch 2.0 Beta Tester  wink

Offline

 

#161 2012-10-28 11:05:14

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: Scratch 2.0 Projects' Viewer Programmed In Javascript and HTML5

Pitusky12 wrote:

GP1:Okay,i know it wont work with ios the code i posted but somehow we could manage to make it open files from Box Or Dropbox app from ios.

Oh. Maybe there is a special protocal for it. I know there is an app that allows you to upload you pictures.


I am currently http://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=imagehttp://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=text and I finally got over 1000 posts.

Offline

 

#162 2012-10-28 11:18:00

Pitusky12
Scratcher
Registered: 2011-09-21
Posts: 500+

Re: Scratch 2.0 Projects' Viewer Programmed In Javascript and HTML5

Oh okay  smile


Scratch 2.0 Beta Tester  wink

Offline

 

#163 2012-10-28 17:35:09

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: Scratch 2.0 Projects' Viewer Programmed In Javascript and HTML5

Ummm....... Can everybody start working in the Git for the actual viewer? So far, I have made the MOST commits. I don't want to do this solo.


I am currently http://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=imagehttp://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=text and I finally got over 1000 posts.

Offline

 

#164 2012-10-28 17:36:47

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: Scratch 2.0 Projects' Viewer Programmed In Javascript and HTML5

@pwiter
I'm guessing something is wrong with your script? It makes directorys on the domain, but not files.


I am currently http://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=imagehttp://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=text and I finally got over 1000 posts.

Offline

 

#165 2012-10-28 19:33:14

al-x
New Scratcher
Registered: 2012-10-03
Posts: 100+

Re: Scratch 2.0 Projects' Viewer Programmed In Javascript and HTML5

I figured out how to push and commit in GitHub! I changed some graphics.

Offline

 

#166 2012-10-28 19:46:33

Pitusky12
Scratcher
Registered: 2011-09-21
Posts: 500+

Re: Scratch 2.0 Projects' Viewer Programmed In Javascript and HTML5

I't doesn't matter who does more commits.What matters is who uploads new stuff ,ideas .I uploaded some new stuff and edited too


Scratch 2.0 Beta Tester  wink

Offline

 

#167 2012-10-28 20:26:01

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: Scratch 2.0 Projects' Viewer Programmed In Javascript and HTML5

Pitusky12 wrote:

I't doesn't matter who does more commits.What matters is who uploads new stuff ,ideas .I uploaded some new stuff and edited too

I know. I just said that because I felt like I was doing all the work. I'll work on this REALLY hard, though. I might be able to get it done before Thanksgiving! Anyway, it will go faster, since that sample player is EXACTLY what we want, but we can't copy it and use it, I'm currently forking it, using it as an aid for writing a better one.


I am currently http://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=imagehttp://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=text and I finally got over 1000 posts.

Offline

 

#168 2012-10-28 21:01:37

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: Scratch 2.0 Projects' Viewer Programmed In Javascript and HTML5

Hey, I got a crude player going! And the full screen mode works perfectly! Just let me fix a few errors and I'll push it to the repo.


I am currently http://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=imagehttp://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=text and I finally got over 1000 posts.

Offline

 

#169 2012-10-28 22:47:25

Pitusky12
Scratcher
Registered: 2011-09-21
Posts: 500+

Re: Scratch 2.0 Projects' Viewer Programmed In Javascript and HTML5

GP1 wrote:

Hey, I got a crude player going! And the full screen mode works perfectly! Just let me fix a few errors and I'll push it to the repo.

Ill try to fix some bugs and maybe add more features.


Scratch 2.0 Beta Tester  wink

Offline

 

#170 2012-10-28 23:52:06

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: Scratch 2.0 Projects' Viewer Programmed In Javascript and HTML5

Pitusky12 wrote:

GP1 wrote:

Hey, I got a crude player going! And the full screen mode works perfectly! Just let me fix a few errors and I'll push it to the repo.

Ill try to fix some bugs and maybe add more features.

There were so many bugs in it that i just got SO frustrated and scrapped that player. Im redoing the whole thing from scratch, and im not using the sample as an aid. Yes, this will take longer, but it will work better. I edited it, but i forgot to push when i got off my familys computer. Ill wait till the morning to push it. My tablet is TOO old for the GitHub app, so i can only use a computer for it.


I am currently http://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=imagehttp://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=text and I finally got over 1000 posts.

Offline

 

#171 2012-10-29 00:10:08

Pitusky12
Scratcher
Registered: 2011-09-21
Posts: 500+

Re: Scratch 2.0 Projects' Viewer Programmed In Javascript and HTML5

GP1 wrote:

Pitusky12 wrote:

GP1 wrote:

Hey, I got a crude player going! And the full screen mode works perfectly! Just let me fix a few errors and I'll push it to the repo.

Ill try to fix some bugs and maybe add more features.

There were so many bugs in it that i just got SO frustrated and scrapped that player. Im redoing the whole thing from scratch, and im not using the sample as an aid. Yes, this will take longer, but it will work better. I edited it, but i forgot to push when i got off my familys computer. Ill wait till the morning to push it. My tablet is TOO old for the GitHub app, so i can only use a computer for it.

Oh Okay,NO  smile


Scratch 2.0 Beta Tester  wink

Offline

 

#172 2012-10-29 09:34:45

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: Scratch 2.0 Projects' Viewer Programmed In Javascript and HTML5

Pitusky12 wrote:

GP1 wrote:

Pitusky12 wrote:


Ill try to fix some bugs and maybe add more features.

There were so many bugs in it that i just got SO frustrated and scrapped that player. Im redoing the whole thing from scratch, and im not using the sample as an aid. Yes, this will take longer, but it will work better. I edited it, but i forgot to push when i got off my familys computer. Ill wait till the morning to push it. My tablet is TOO old for the GitHub app, so i can only use a computer for it.

Oh Okay,NO  smile

???????


I am currently http://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=imagehttp://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=text and I finally got over 1000 posts.

Offline

 

#173 2012-10-29 09:56:33

Pitusky12
Scratcher
Registered: 2011-09-21
Posts: 500+

Re: Scratch 2.0 Projects' Viewer Programmed In Javascript and HTML5

GP1 wrote:

Pitusky12 wrote:

GP1 wrote:


There were so many bugs in it that i just got SO frustrated and scrapped that player. Im redoing the whole thing from scratch, and im not using the sample as an aid. Yes, this will take longer, but it will work better. I edited it, but i forgot to push when i got off my familys computer. Ill wait till the morning to push it. My tablet is TOO old for the GitHub app, so i can only use a computer for it.

Oh Okay,NO  smile

???????

sorry i wrote no accidentally.


Scratch 2.0 Beta Tester  wink

Offline

 

#174 2012-10-29 10:04:48

GP1
Scratcher
Registered: 2009-07-06
Posts: 1000+

Re: Scratch 2.0 Projects' Viewer Programmed In Javascript and HTML5

Pitusky12 wrote:

GP1 wrote:

Pitusky12 wrote:


Oh Okay,NO  smile

???????

sorry i wrote no accidentally.

Ok.


I am currently http://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=imagehttp://blocks.scratchr.org/API.php?user=GP1&amp;action=onlineStatus&amp;type=text and I finally got over 1000 posts.

Offline

 

#175 2012-10-29 20:26:58

pwiter
Scratcher
Registered: 2010-06-02
Posts: 100+

Re: Scratch 2.0 Projects' Viewer Programmed In Javascript and HTML5

I'm trying to fix the script, but I just manually deleted all the useless junk, so the site should be fine untill there is another commit.

@Pitusky12:
Whats this:

Code:

user_pref("capability.policy.policynames", "localfilelinks"); 
user_pref("capability.policy.localfilelinks.sites", "https://github.com/jScratch/jScratch/blob/gh-pages/form%20handler.php/formhandler.php"); 
user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");

EDIT: I fixed the script, no more glitches!

Last edited by pwiter (2012-10-29 20:41:53)


http://i.imgur.com/YBeXc.png

Offline

 

Board footer