Saving files to a specific Folder using codepen - javascript

I am making a program on codepen, and I figured out how to save a file, however, I was wondering if it was possible to save the files to a specific folder on a computer. Ive had a look around and not too sure if its possible to be done on a browser type set up such as codepen.
Thanks

Related

Can I change or upload a file in the directory of my html-file?

So I have the following situation:
There is an HTML file in some directory on my PC. If I open this HTML file in a browser, I want to click a button with which I can write or change a file in the same directory.
So there is no server whatsoever, just an HTML file opened in a browser.
Is this possible?
Calling a python script from a button would also work for me.
I just have to be able to detect a change in the directory when the button is clicked.
TL;DR
Yes it is. but there is additional system like git. and you need to implement using javascript.
Not a solution
I am sorry about I can not provide exact solution about your question. but I can give you keywords. I assume you do not know about git.
I recommend implement local git system for your local directory. because there is lot of changes your files. (like edit single character or add new files) and some of files you do not want detected (that's mentioned in .gitignore)
and there is suitable project for you isomorphic-git
. and If you heard about git first, also check github guide.

Github Extension not working

Alright, so the game Agar.io is where you eat cells and you are a cell. I was on Github today, and found a repository that had an open source Skin Changer.
The repo is: https://github.com/SebyakinAndrei/Agar.io-Free-Skin
So basically at the top this asks users for skin name and skin URL. I want to pull that and change the code so that instead of showing that, it will be chosen already. Now the issue is getting the code to work.
There are two parts to the program, one which is called addon.js and another one that is called Free.Skins.user.js. Both of those are on the repo. The user.js just tells tampermonkey to look at the code on the addon.js. The issue I am having is that I download the addon.js and try to upload to my server and then try to get the user.js to load it up. I do everything correctly, the JavaScript is also up on the host and still it won't load the addon.js. I didn't modify anything.
I also tried uploading it myself to Github on my own repository, it still didn't work.
My Repo: https://github.com/makanenzo10/abs0rb_skins
I also tried uploading the script to rawgit.com. Am I doing something wrong?
EDIT: Nevermind I got it to work. I had to upload it to rawgit.com using the development mode :/

Using Javascript library from other project

I have two websites and in one of them I have some scripts that I want to use on the second website, I don't want to copy the .js files to the other projects, because if I had some change on the .js file I will have to do the same thing twice.
I don't know how can I do it, I've already read something abou Virtual Path Provider, but it apparently doesn't work fine for me, the .js files are in sub-folders, and the VPP won't find it.
Could someone give me ideas about what I should do?

Uploading html file generated from R-animation package to wordpress

I created a HTML file using the animation package in R. Now I'm trying to upload the resulting HTML file to a wordpress blog but don't really know how to make it work. It seems like I might need to upload some js or css files too but am not sure. Also, it seems like I might need to upload the original data files as the HTML file is 2.5kb and the original CSV file is 2500kb. Any suggestions would be appreciated.
I think I have addressed this issue in ?saveHTML if you are using the latest version of the animation package (the second paragraph in the Note section). Perhaps it is still not clear (I'll improve it in the next version), so let me explain it here:
What you need to upload are: the HTML file, the image folder, js and css. The CSV data is not required, since the animation is independent with the data now.

Download multible files with JavaScript(one Download)

I generate a HTML page with VB.Net which stores several pinks to files. These links are formatted with JavaScript looking like the Windows-Explorer with folders and files. The problem: There are only download links for the files, not for Folders. A folder can contain Subfolders ,a List of Files or a combination of both. So if I want to download a folder, I have to click manually on every file-link. I have not the possibility to insert PHP or another Server-side language.
my question now is:
Is there a client side way to Download them by click on a Folder? I prefer Javascript but If it isn't possible Flash will be ok also.
What you could do is, link the folders to a special ASPX file. In this file, just create a ZIP with all the files inside it, and make the browser download that ZIP file. I think it's the easy way to accomplish what you are trying to.
With Javascript you could open several windows, one with each file downloaded. But I don't think it will please your users.
There is no way in Javascript and as far as I can tell, theres no way to do it in Flash either. A server-side zip is going to be your only way.

Categories