Awesome Reports

Size
6,603 Kb
Views
4,048

How do I make an awesome reports?

DISCLAIMER: PJM Interconnection LLC owns the rights to all code. Do not reproduce without permission.. What is a awesome reports? How do you make a awesome reports? This script and codes were developed by Jordan Checkman on 21 January 2023, Saturday.

Awesome Reports Previews

Awesome Reports - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Awesome Reports</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <html>	<head>	<title>Slide Menu</title>	</head>	<body>	<header>	<a id="menu_open">	<span></span>	</a>	<ul>	<li id="Print">PRINT</li>	<li id="CSV">CSV</li>	</ul>	</header>	<a id="hide_slide">	<span></span>	</a>	<nav>	<ul id="main_nav" class="uncovered">	<li>Tables...<span>&rsaquo;</span></li>	<li>More Tables!<span>&rsaquo;</span></li>	</ul>	<ol class="submenu hidden">	<li class="back"><span>&lsaquo;</span>Tables...</li>	<li>Table One</li>	<li>Table Two</li>	</ol>	<ol class="submenu hidden">	<li class="back"><span>&lsaquo;</span>More Tables!</li>	<li>A third one</li>	<li>Bonus</li>	</ol>	</nav>	<section>	<table>	<caption>Example Table One</caption>	<thead>	<tr>	<th>This</th>	<th>Is</th>	<th>An</th>	<th>Example</th>	<th>Table</th>	</tr>	</thead>	<tbody>	<tr>	<td>Here</td>	<td>Is</td>	<td>Some</td>	<td>Dummy</td>	<td>Data</td>	</tr>	<tr>	<td>Here</td>	<td>Is</td>	<td>Some</td>	<td>More</td>	<td>:)</td>	</tr>	<tr>	<td>1</td>	<td>2</td>	<td>3</td>	<td>4</td>	<td>5</td>	</tr>	<tr>	<td>1</td>	<td>Try</td>	<td>Sorting</td>	<td>And</td>	<td>Filtering</td>	</tr>	</tbody>	</table>	</section>	<section class="hidden">	<table>	<caption>Example Table Two</caption>	<thead>	<tr>	<th>This</th>	<th>Is</th>	<th>A</th>	<th>Different</th>	<th>Example</th>	</tr>	</thead>	<tbody>	<tr>	<td>Yackity</td>	<td>Yack</td>	<td>Dont</td>	<td>Talk</td>	<td>Back</td>	</tr>	<tr>	<td>Shake</td>	<td>It</td>	<td>Up</td>	<td>Baby</td>	<td>Now</td>	</tr>	<tr>	<td>6</td>	<td>7</td>	<td>8</td>	<td>9</td>	<td>10</td>	</tr>	</tbody>	</table>	</section>	<section class="hidden">	<table>	<caption>Example Table Three</caption>	<thead>	<tr>	<th>Yet</th>	<th>Another</th>	<th>Example</th>	<th>For</th>	<th>You</th>	</tr>	</thead>	<tbody>	<tr>	<td>James</td>	<td>Brown</td>	<td>Was</td>	<td>A</td>	<td>Genius</td>	</tr>	<tr>	<td>James</td>	<td>Franco</td>	<td>Is</td>	<td>A</td>	<td>Weirdo</td>	</tr>	</tbody>	</table>	</section>	<section class="hidden">	<table>	<caption>Topsy Krets</caption>	<thead>	<tr>	<th>DID</th>	<th>YOU</th>	<th>TRY</th>	<th>KONAMI</th>	<th>CODE?</th>	</tr>	</thead>	<tbody>	<tr>	<td>UP</td>	<td>UP</td>	<td>DOWN</td>	<td>DOWN</td>	<td>LEFT</td>	</tr>	<tr>	<td>RIGHT</td>	<td>LEFT</td>	<td>RIGHT</td>	<td>B</td>	<td>A + Enter</td>	</tr>	</tbody>	</table>	</section>	</body>
</html> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://datatables.net/download/build/jquery.dataTables.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Awesome Reports - Script Codes CSS Codes

::selection {	background: rgb(200,200,200);	}
::-moz-selection {	background: rgb(200,200,200);
}
#loading{	width: 100%;	height: 100%;	background: rgba(255,255,255,.85);	position: absolute;	top: 0;	left: 0;	z-index: 9999;	text-align: center;	font-size: 72px;	font-weight: 900;	line-height: 1000%;	color: rgba(50,50,50);	text-shadow: 0 2px 0 rgba(0,0,0,0.1);	-webkit-animation: loading_anim 1s ease-in-out 0s infinite alternate;	animation: loading_anim 1s ease-in-out 0s infinite alternate;
}
@-webkit-keyframes loading_anim{	from{	color: rgba(50,50,50,1);	}	to{	color: rgba(50,50,50,.2);	}
}
@keyframes loading_anim{	from{	color: rgba(50,50,50,1);	}	to{	color: rgba(50,50,50,.2);	}
}
body{	margin: 0;	background: rgb(48, 109, 153);	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;	text-rendering: optimizeLegibility;	-webkit-font-feature-settings: "liga";	-webkit-transition: background-color 3s linear;	-moz-transition: background-color 3s linear;	-ms-transition: background-color 3s linear;	transition: background-color 3s linear;
}
section{	width: 80%;	width: calc(100% - 240px);	height: 100%;	float: right;	-webkit-transition: all .35s ease;	-moz-transition: all .35s ease;	-ms-transition: all .35s ease;	transition: all .35s ease;
}
section.single{	width: 100%;	float: none;
}
/*table styling*/
caption{	margin-bottom: 1em;	font-size: 2em;	font-weight: 400;	color: rgba(255,255,255,.8);
}
table{	width: 85%;	margin: 0 auto;	margin-top: -35px;	color: rgb(100,100,100);	box-shadow:	0 0 15px rgba(0,0,0,.15),	0 0 1px 1px rgba(0,0,0,.1);	border-collapse: collapse;	font-size: .8rem;	cursor: default;
}
th{	text-transform: uppercase;	letter-spacing: 1px;	font-size: .9rem;	font-weight: 900;	background: rgba(255,255,255,.9);	cursor: pointer;	transition: all .3s ease;
}
th.selected,
th:hover,
nav>ol>li.selected{	background: rgba(150,150,150,.9);	color: rgb(230,230,230);
}
td{	font-weight: 400;	border-right: 1px solid rgba(230,230,230,.3);
}
tr>td:last-child{	border-right: none;
}
th, td{	text-align: center;	padding: 3px;
}
tbody>tr:nth-child(odd){	background: rgba(255,255,255,.65);
}
tbody>tr:nth-child(even){	background: rgba(255,255,255,.9);
}
/*END table styling*/
/*navigation*/
nav{	width: 220px;	height: 100%;	z-index: 9998;	float: left;	margin: 0;	position: fixed;	-webkit-transition: all .5s ease;	-moz-transition: all .5s ease;	-ms-transition: all .5s ease;	transition: all .5s ease;	overflow-y: auto;	overflow-x: hidden;
}
nav>ul::-webkit-scrollbar,
nav>ol::-webkit-scrollbar{ width: 8px;
}
nav>ul::-webkit-scrollbar-thumb:vertical,
nav>ol::-webkit-scrollbar-thumb:vertical{ margin: 5px; background-color: rgba(175,175,175,.8); -webkit-border-radius: 5px;
}
nav>ul::-webkit-scrollbar-button:start:decrement,
nav>ul::-webkit-scrollbar-button:end:increment,
nav>ol::-webkit-scrollbar-button:start:decrement,
nav>ol::-webkit-scrollbar-button:end:increment{ height: 5px; display: block;
}
nav>ul,
nav>ol{	margin: 0;	padding: 0;	position: fixed;	width: 220px;	height: 100%;	list-style-type: none;	overflow: auto;	background: rgba(255,255,255,.8);	color: rgb(50,50,50);	box-shadow: 1px 1px 2px 1px rgba(0,0,0,.2);	-webkit-margin-before: 0;	-webkit-margin-after: 0;	-webkit-padding-start: 0;
}
nav>ul>li,
nav>ol>li{	position: relative;	padding: 10px;	cursor: pointer;	font-weight: 700;	overflow-x: hidden;	text-overflow:ellipsis;
}
nav>ul.covered>li{	cursor: default;
}
nav>ul.uncovered>li:hover,
nav>ol>li:hover,
header>ul>li:hover{	background: rgb(150,150,150);	color: rgb(230,230,230);	z-index: 2;
}
nav>ul.uncovered>li:active,
nav>ol>li:active,
header>ul>li:active{	background: rgb(150,150,150);	color: rgb(230,230,230);
}
li>span{	position: absolute;	right: 10px;	font-weight: 900;	font-size: 1.5em;	top: 3px;
}
li.back>span{	left: 10px;	right: auto;
}
li.back{	font-weight: 900;	text-align: center;	//text-transform: uppercase;	font-size: 1.15em;
}
.covered{	background: rgba(200,200,200,.8);	color: transparent;	-webkit-user-select: none;	-moz-user-select: none;
}
.submenu{	position: relative;	float: right;	background: rgb(255,255,255);	width: 198px;	font-size: .95em;	-webkit-transition: -webkit-transform .5s cubic-bezier(.1,.7,.1,1);
}
.hidden{	display: none;
}
.hidden_animation{	-webkit-animation: slide_out .5s cubic-bezier(.1,.7,.1,1);	animation: slide_out .5s cubic-bezier(.1,.7,.1,1);
}
.shown{	-webkit-animation: slide_in .5s cubic-bezier(.1,.7,.1,1);	animation: slide_in .5s cubic-bezier(.1,.7,.1,1);
}
@-webkit-keyframes slide_in{	from{	-webkit-transform: translate3d(100%,0,0);	}	to{	-webkit-transform: translate3d(0,0,0);	}
}
@-webkit-keyframes slide_out{	from{	-webkit-transform: translate3d(0,0,0);	}	to{	-webkit-transform: translate3d(100%,0,0);	}
}
@keyframes slide_in{	from{	transform: translate3d(100%,0,0);	}	to{	transform: translate3d(0,0,0);	}
}
@keyframes slide_out{	from{	transform: translate3d(0,0,0);	}	to{	transform: translate3d(100%,0,0);	}
}
/*END navigation*/
/*features menu*/
header{	position: fixed;	top: 0;	right: 0;	width: 400px;	height: 0;	background: rgba(255,255,255,.9);	backface-visibility:hidden;	-webkit-backface-visibility: hidden;	-moz-backface-visibility:hidden;	-webkit-transition: height .5s cubic-bezier(.1,.7,.1,1);	-moz-transition: height .5s cubic-bezier(.1,.7,.1,1);	transition: height .5s cubic-bezier(.1,.7,.1,1);
}
header.triggered{	height: 50px;
}
a#menu_open{	position: fixed;	top: 5px;	right: 20px;	display: block;	cursor: pointer;	width: 50px;	height: 40px;	background: rgba(150,150,150,.8);	-webkit-user-select: none;	-moz-user-select: none;	-webkit-transition: background .3s;	-moz-transition: background .3s;	transition: background .3s;	z-index: 999;
}
a#menu_open>span{	display: block;	position: absolute;	top: 17.5px;	left: 10%;	width: 80%;	height: 4px;	background: rgba(255,255,255,.8);	-webkit-user-select: none;	-moz-user-select: none;	-webkit-transition: background .3s;	-moz-transition: background .3s;	transition: background .3s;
}
a#menu_open>span:before,
a#menu_open>span:after {	position: absolute;	left: 0;	width: 100%;	height: 100%;	background: rgba(255,255,255,.8);	content: '';	-webkit-transition: -webkit-transform .3s, background .3s;	-moz-transition: transform .3s, background .3s;	transition: transform .3s, background .3s;
}
header>a#menu_open>span:before{	-webkit-transform: translate3d(0,-250%,0);	transform: translate3d(0,-250%,0);
}
header>a#menu_open>span:after{	-webkit-transform: translate3d(0,250%,0);	transform: translate3d(0,250%,0);
}
header.triggered>a#menu_open{	background: transparent;
}
header.triggered>a#menu_open>span{	background: transparent;
}
header.triggered>a#menu_open>span:before{	-webkit-transform: translate3d(0,0,0) rotate(45deg);	transform: translate3d(0,0,0) rotate(45deg);	background: rgb(120,120,120);
}
header.triggered>a#menu_open>span:after{	-webkit-transform: translate3d(0,0,0) rotate(-45deg);	transform: translate3d(0,0,0) rotate(-45deg);	background: rgb(120,120,120);
}
header>ul{	width: 100%;	list-style-type: none;	-webkit-transition: -webkit-transform .3s cubic-bezier(.1,.7,.1,1);	-moz-transition: transform .3s cubic-bezier(.1,.7,.1,1);	transition: transform .3s cubic-bezier(.1,.7,.1,1);	-webkit-transform: translate3d(0,-50px, 0);	transform: translate3d(0,-50px, 0);
}
header.triggered>ul{	-webkit-transform: translate3d(0,-10px,0);	transform: translate3d(0,-10px,0);
}
header>ul>li{	float: left;	width: 100px;	text-align: center;	cursor: pointer;	padding: 10px 0;	font-weight: bold;	color: rgb(50,50,50);
}
/*END features menu*/
/*Data tables styling*/
.dataTables_filter{	display: block;	width: 200px;	margin-left: 7.5%;	margin-top: 50px;	margin-right: 0;	margin-bottom: 0;
}
::-webkit-input-placeholder {	color: rgb(80,80,80);	font-weight: 700;
}
::-moz-input-placeholder {	color: rgb(80,80,80);	font-weight: 700;
}
.dataTables_filter>label{	font-size: 0;
}
.dataTables_filter input[type=text]{	border: 5px solid rgba(255,255,255,.9);	padding: 5px;	background: rgba(255,255,255,.5);
}
.dataTables_filter input[type=text]:focus{	background: rgba(200,200,200,.5);
}
/*END Data tables styling*/
/*hide slide functionality*/
a#hide_slide{	position: fixed;	height: 100%;	width: 20px;	background: rgba(150,150,150,.8);	-webkit-transform: translate3d(220px,0,0);	transform: translate3d(220px,0,0);	color: rgba(255,255,255,.8);	cursor: pointer;	//-webkit-transition: -webkit-transform .3s;	//-moz-transition: transform .3s;
}
a#hide_slide.triggered{	-webkit-transform: translate3d(0,0,0);	transform: translate3d(0,0,0);
}
a#hide_slide:hover{	background: rgba(180,180,180,.8);
}
a#hide_slide:active{	background: rgba(160,160,160,.8);
}
a#hide_slide>span:before{	content: '\2039';	display: block;	position: relative;	height: 100%;	width: 100%;	text-align: center;	font-size: 3em;	-webkit-transform: translate3d(0, calc(50% - 25px),0);	transform: translate3d(0, calc(50% - 25px),0);	-webkit-user-select: none;
}
a#hide_slide.triggered>span:before{	content: '\203A';
}
nav.hidden{	display: none;	-webkit-transform: translate3d(-220px,0,0);	transform: translate3d(-220px,0,0);
}
section.expanded{	width: calc(100% - 20px);
}
/*END hide slide functionality*/
@media print{ nav, input, label, header, a{	display: none;
}
body{	background: rgb(255,255,255);
}
section{	width: 100%;	float: none;
}
table{	width: 95%;	color: rgb(0,0,0);
}
th, td{	padding: 1px;
}
tbody>tr:nth-child(odd){	background: rgb(255,255,255);
}
tbody>tr:nth-child(even){	background: rgb(225,225,225);
}
}

Awesome Reports - Script Codes JS Codes

$(document).ready(function(){	var shiftdown=false;	$('table').dataTable({	"bPaginate": false,	"bLengthChange": false,	"bFilter": true,	"bSort": true,	"bInfo": false,	"bAutoWidth": false	});	//Disable loading screen when everything is done	$(window).load(function(){	$('#loading').fadeOut(500);	});	//Set filter placeholder	$('.dataTables_filter input[type=text]').attr('placeholder','Filter');	//Nav slide in	$('nav>ul>li').click(function(){	if( $('nav>ul').hasClass('uncovered') ){	var dex = $(this).index();	$('nav>ol').slice(dex,(dex+1)).removeClass('hidden').addClass('shown');	$('nav>ul').removeClass('uncovered').addClass('covered');	};	});	$('.back').click(function(){	//animate the removal	$('.submenu').removeClass('shown').addClass('hidden_animation');	//wait .35 seconds then actually remove it.	setTimeout(function(){	$('.submenu').addClass('hidden');	},350);	$('nav>ul').removeClass('covered').addClass('uncovered');	});	$('ol>li:not(.back)').click(function(){	$('section').addClass('hidden');	//determine which content to display	var totalIndex = 0;	for (var i = 0; i < ($(this).parent().index()-1); i++) {	totalIndex += ($('nav>ol').slice(i,(i+1)).children().length-1);	};	totalIndex+=$(this).index();	//display content	$('section').slice((totalIndex-1),(totalIndex)).removeClass('hidden');	//add selected state	$(this).siblings().removeClass('selected');	$(this).addClass('selected');	});	//Determine if shift is being held down.	$(document).keydown(function(event) { if (event.keyCode == 16) { shiftdown=true; }	});	$(document).keyup(function(event) { if (event.keyCode == 16) { shiftdown=false; }	});	//highlight table headers on click	$('th').click(function(){	if (shiftdown == true) {	$(this).addClass('selected');	}	else{	$(this).siblings().removeClass('selected');	$(this).addClass('selected');	}	});	function trigger_header(){	if ($('header').hasClass('triggered')){	$('header').removeClass('triggered');	}	else{	$('header').addClass('triggered');	}	}	$('#menu_open').click(function(){	trigger_header();	});	function toggle_slide_menu_visibility(){	if ($('#hide_slide').hasClass('triggered')){	$('#hide_slide').removeClass('triggered');	$('nav').removeClass('hidden');	$('section').removeClass('expanded');	}	else{	$('#hide_slide').addClass('triggered');	$('nav').addClass('hidden');	$('section').addClass('expanded');	}	}	$('#hide_slide').click(function(){	toggle_slide_menu_visibility();	});
function getRandomInt (min, max){	return Math.floor(Math.random() * (max - min + 1)) + min;	}	function hsv_to_RGB(h,s,v){	var r,g,b;	var i = Math.floor( h * 6 );	var f = h * 6 - i;	var p = v * ( 1 - s );	var q = v * ( 1 - f * s );	var t = v * ( 1 - ( 1 - f ) * s );	switch( i % 6 ){	case 0: r = v, g = t, b = p;	break;	case 1: r = q, g = v, b = p;	break;	case 2: r = p, g = v, b = t;	break;	case 3: r = p, g = q, b = v;	break;	case 4: r = t, g = p, b = v;	break;	case 5: r = v, g = p, b = q;	break;	}	return[r*255,g*255,b*255];	}	function generate_color(saturation, value){	//generates a random, pleasing color based on the golden ratio	var golden_ratio = 0.618033988749895;	var color = getRandomInt(0,255);	var hue = (color + (color / golden_ratio)) % 1;	var RGB = hsv_to_RGB(hue,saturation,value);	var bg_string = 'rgb(' +	Math.floor(RGB[0]).toString() + ',' +	Math.floor(RGB[1]).toString() + ',' +	Math.floor(RGB[2]).toString() + ')';	return bg_string;	}	var keys = [];	var konamiCode = '38,38,40,40,37,39,37,39,66,65,13';	$(document).keydown(function(event){	keys.push(event.keyCode);	if(keys.toString().indexOf(konamiCode)>=0){	$('body').css('background-color', generate_color(.3,.45));	keys = [];	}	}); function download(strData, strFileName, strMimeType) {	var D = document,	a = D.createElement("a");	strMimeType= strMimeType || "application/octet-stream";	if (window.MSBlobBuilder) { //IE10+ routine	var bb = new MSBlobBuilder();	bb.append(strData);	return navigator.msSaveBlob(bb, strFileName);	} /* end if(window.MSBlobBuilder) */	if ('download' in a) { //html5 A[download]	//a.href = "data:" + strMimeType + "," + encodeURIComponent(strData); Encoded version	a.href = "data:" + strMimeType + strData;	a.setAttribute("download", strFileName);	a.innerHTML = "downloading...";	D.body.appendChild(a);	setTimeout(function() {	a.click();	D.body.removeChild(a);	}, 66);	return true;	} /* end if('download' in a) */	//do iframe dataURL download (old ch+FF):	var f = D.createElement("iframe");	D.body.appendChild(f);	//f.src = "data:" + strMimeType + "," + encodeURIComponent(strData);	f.src = "data:" + strMimeType + strData;	setTimeout(function() {	D.body.removeChild(f);	}, 333);	return true;
} $('#Print').click(function(){	window.print();	});	$('#CSV').click(function(){	download($('section:not(.hidden) table').toCSV(), ($('section:not(.hidden) table caption').html()+'.csv'),	'data:application/csv;charset=UTF-8,');	});
});
Awesome Reports - Script Codes
Awesome Reports - Script Codes
Home Page Home
Developer Jordan Checkman
Username JordanC
Uploaded January 21, 2023
Rating 3
Size 6,603 Kb
Views 4,048
Do you need developer help for Awesome Reports?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Jordan Checkman (JordanC) Script Codes
Create amazing marketing copy with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!