cryptotechdao / whump Goto Github PK
View Code? Open in Web Editor NEWThis project forked from justinfrankel/whump
Web HTML Universal Music Player
License: GNU General Public License v2.0
This project forked from justinfrankel/whump
Web HTML Universal Music Player
License: GNU General Public License v2.0
WHUMP v0.x Web HTML Universal Music Player Copyright (C) 2015 Cockos Inc License: GPL To use, option 1: Make a file whump_config.js and put it with whump.html: // can override pl_fntitle, db_fntitle, or fntourl() definitions function whump_init() { document.title = "test"; document.getElementById("thdr").innerHTML = "WHUMP-test"; document.getElementById("foot").innerHTML = "Powered by WHUMP"; request_db("database-file.txt"); // can include multiple lines of these if you like }; To use, option 2: (if you want search-engines getting your page and don't want the additional javascript file) Search and replace, e.g. in PHP: $init_code = 'request_db("database-file.txt");' // can include multiple statements echo str_replace('<title>WHUMP</title>','<title>test</title>', str_replace('<div id="thdr"></div>', '<div id="thdr">WHUMP-test</div>', str_replace('<script src="whump_config.js"></script>','', str_replace('<div id="foot"></div>', '<div id="foot">Powered by WHUMP</div>', str_replace('whump_init();', $init_code, file_get_contents("whump.html")))))); -------- database-file.txt can be a URL, and the contents of which should be zero or more lines of (tab delimited): ; Prepopulated playlist item: pre URL ; Item in database: item URL length_in_seconds -------- BONUS: want to modify the CSS without having to modify the .html file? Use the following javascript: function getcssrule(name) { if (!document.styleSheets) return false; var ss=document.styleSheets[0],c=0; for (;;) { for (var i = 0; i < ss.cssRules.length; i ++) { var r = ss.cssRules ? ss.cssRules[i] : ss.rules[i]; if (r && r.selectorText.toLowerCase()==name) return r; } if (c++) return false; if (ss.addRule) ss.addRule(name, null,0); else ss.insertRule(name+" { }", 0); } } Example: getcssrule("#foot a").style.color = "black";
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.