Skip to content

This repo will only be updated with vital patches. We have moved on to using WonderCMS. Visit repo name for old website.

License

Notifications You must be signed in to change notification settings

carbideband/carbideband.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

carbideband.github.io

The repository for Carbide's website

www.carbi.de.com is made possible by the following awesome projects & services:

Using Github as a host, requires only a domain name to be registered (if you even want a custom domain). CNAME must be set within repo & domain provider DNS settings, if you do. Caveat being that gh-pages only allows the use of static pages. Fullpage.js allows the use of JavaScript to make Github's static pages a bit more versatile. In our usecase, what we wanted was for users to be able to browse the webpage, without interrupting the music player.

Reference the README for FullPage.js to modify and understand how slides are set up for your usecase.

To validate our licenseKey, we use a hosted Apache server and authenticate our license via AJAX.

You can create your own server-side 'keyring.php' with something like this:

<?php
header("Access-Control-Allow-Origin: http://website.org");
header("Access-Control-Allow-Headers: XRequested-With, Content-Type");
header("Content-Type: application/json");

include(__DIR__ . '/path/to/hidden_keys.php');

$key = array();

if(isset($_POST['findkey'])) {
	switch($_POST['findkey']) {
		case 'fullpage':
			$key['result'] = $selectkey[0];
			break;
 		case 'secondkey':
			$key['result'] = $selectkey[1];
			break;
		default:
			$key['error'] = 'Invalid key selected.';
			break;
	}
}

echo  json_encode($key);

?>

hidden_keys.php

<?php
$selectkey = array('your-keycode-here', 'second-keycode'); /*invoked by: ($selectkey[0], selectkey[1])*/
?>

hidden_keys.php can be hidden by moving it into an include folder outside of web root.

Using an array will allow you to store multiple keys and use them whenever you need to by invoking the proper array value.

Sidenote about Jekyll: It is a great way to make an exceptional static blog with little to no programming background and their Minima theme is amazing. It is great for just about any website (so long as you do some modifying).

Hope this helps out anyone else looking to create a website similar to ours.

About

This repo will only be updated with vital patches. We have moved on to using WonderCMS. Visit repo name for old website.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published