You can also use this file as a configuration (for future development) and store more information there, for example:
yourfile.txt:
{"enable":"ON","version":"1.0"}
and additionally use JSON to analyze the contents of the file:
$.get('/path/yourfile.txt', function(data) { var config = JSON.parse(data); if(config.enable == 'ON') {
source share