flash player detection

This commit is contained in:
James Shiffer 2020-10-27 10:43:19 -07:00
parent c4f387e006
commit 4a62e57950
3 changed files with 113 additions and 2 deletions

View File

@ -0,0 +1,103 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Company Vehicles - FemboyFinancial Online Webportal</title>
<style>
html, body {
margin: 0;
width: 640px;
height: 480px;
}
body {
background-image: url('/assets/Downloads.gif');
background-color: #1600FF;
background-repeat: no-repeat;
color: #EE2D24;
}
.copyright, .footerlinks a {
color: #EE2D24;
}
.carlist {
font-size: 12px;
margin: 0 8px;
}
h1 {
font-size: 16px;
}
h3 {
margin-top: 30px;
margin-bottom: 0;
}
p.graph {
text-align: center;
}
.copyright {
margin: 0;
}
.footer {
margin-top: 20px;
font-size: 12px;
text-align: center;
}
.footerlinks a {
margin: 0 24px;
font-size: 12px;
}
</style>
<script src="/js/swfobject.js"></script>
</head>
<body>
<h1><img src="/assets/GasPumppe.gif"> Company Vehicles</h1>
<div class="carlist">
<p>In the interest of Environmental preservation and lower operating costs, FemboyFinancial have chosen only the most fuel-efficient vehicles for their fleet.</p>
<p>For the sake of transparency the vehicles' mileage data is periodically published on this webbe page.</p>
<h3>1983 Honda Civic</h3>
<table border="0" cellpadding="0">
<tbody>
<tr>
<td width="90%">
<p><strong>Fast Facts</strong></p>
<ul>
<li><strong>COLOUR:</strong> Creme</li>
<li><strong>ENGINE DISPLACEMENT:</strong> 1300cc</li>
<li><strong>TRIM:</strong> Based model</li>
<li><strong>TRANSMISSION:</strong> 5-speed manual</li>
<li><strong>MANUFACTURED IN:</strong> Suzuka, Japan</li>
<li><strong>FUEL ECONOMY:</strong> Basically 80 myles per gallonne</li>
</ul>
</td>
<td>
<img height="100" src="/assets/HondaCivic.gif">
</td>
</tr>
</tbody>
</table>
<p class="graph">
<cfgraph type="Line" backgroundcolor="white" title="Vehicular Mileage Log" valueColumn="Total Miles Travelled" itemColumn="Unix Timestamppe"
fileFormat="Flash" titleFont="Times" lineColor="red" graphHeight="300" itemLabelFont="Times" scaleFrom="116010" gridLines=5>
<cfgraphdata item="2020-07-31" value=116021>
<cfgraphdata item="2020-08-21" value=116023.3>
<cfgraphdata item="2020-08-23" value=116023.4>
<cfgraphdata item="2020-09-04" value=116028>
<cfgraphdata item="2020-09-11" value=116032.3>
<cfgraphdata item="2020-09-12" value=116033.5>
<cfgraphdata item="2020-10-18" value=116089.9>
<cfgraphdata item="2020-10-21" value=116116.4>
</cfgraph>
</p>
<script type="text/javascript">
if (!swfobject.hasFlashPlayerVersion('1'))
{
document.querySelector('.graph').innerHTML = '<strong>You must have Flash Player installed to view this content.</strong>';
}
</script>
</div>
<cfinclude template="../../templates/Footer.cfm">

View File

@ -16,5 +16,7 @@ function renderMarquee() {
marq.innerHTML = timeStr + " - FEM <span style=\"color:" + stockPriceColor + ";\">" + stockPriceArrow + " " + stockPriceDelta + "</span>";
i++;
}
setInterval(renderMarquee, 1000);
renderMarquee();
if (marq) {
setInterval(renderMarquee, 1000);
renderMarquee();
}

6
public/js/swfobject.js Normal file

File diff suppressed because one or more lines are too long