IQ meme



 





 


 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"https://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Robin's Numbers</title>
<meta name="description" content="Calculation of number on a Facebook meme" >
<link rel="stylesheet" type="text/css" href="https://esand.net/JustWord/Headlines/stylesheet.css" >
<link rel="shortcut icon" href="https://esand.net/commons/favicon.ico" type="image/x-icon" >
<meta http-equiv=Content-Type content="text/html; charset=windows-1252" >
<meta name="robots" content="index,all" >
<link rel="shortcut icon" href="https://esand.net/commons/img/scroll.ico">
<style type="text/css">
div.out input { font: 11px Verdana ; color: #C60000 ; text-align: center ; width: 300px ; font-weight: bold ; height: 12px ; border: 0 ; background-color: transparent ; }
</style>
</head>
<body>
<center>
<br>&nbsp;<br>
<table><tr>
<td width="40%" valign="top" >
<div align="left" >
<img src="https://esand.net/commons/img/IQtest.png" alt="IQ meme" width="300" >
</div>
</td>
<td width="60%" >
<p style="font: 10px Verdana ; " >

<form name="A" >
<input name="a1" maxlength="10" size="10" type="text" value="" >
<input class="form" value="set a" onClick="geta() ; " name="button" type="button">
</form>

<script type="text/javascript">
document.A.a1.focus() ;
var varA = 0 ; var varB = 0 ;
function geta() {
varA = document.A.a1.value ;
var out = ' ' ;
if ( isNaN( varA ) ) { out = 'Not a valid value' ; }
else {
varA = Math.floor( varA ) ;
out = 'a = ' + varA.toString() ; }
document.forms[ "result1" ].out1.value = out ;
document.forms[ "result2" ].o1.value = ' ' ;
document.forms[ "result2" ].o2.value = ' ' ;
}
</script>
<div align="center" class="out" >
<form id="result1" ><br>
<input type="text" name="out1" readonly >
</form>
</div>
<br>&nbsp;<br>
<form name="B" >
<input name="b1" maxlength="10" size="10" type="text" value="" >
<input class="form" value="set b" onClick="getb() ; " name="button" type="button">
</form>

<script type="text/javascript">
function getb() {
varB = document.B.b1.value ;
var out1 = ' ' ; var out2 = ' ' ;
if ( isNaN( varB ) ) { out1 = 'Not a valid value' ; out2 = ' ' ; }
else {
varB = Math.floor( varB ) ;
out1 = 'b = ' + varB.toString() ;
}
document.forms[ "result2" ].o1.value = out1 ;
if ( ( varA > 0 ) && ( varB > 0 ) ) {
var x = varA * varB ;
var y = varA + varB ;
var z = varA - varB ;
out2 = x.toString() + y.toString() + z.toString() ;
}
else { out2 = 'Both values are not greater than zero' ; }
document.forms[ "result2" ].o2.value = out2 ;
}
</script>
<br>
<div align="center" class="out" >
<form id="result2" ><br>
<input type="text" name="o1" readonly ><br>
<input type="text" name="o2" readonly >
</form>
</div>

<p><br><br>&nbsp;</p>
</td></tr></table>

<hr>
<p>&nbsp;</p>

<?php
$n1 = $_REQUEST[ 'a1' ] ;
$n2 = $_REQUEST[ 'b1' ] ;
if ( ( $n1 == '' ) & ( $n2 == '' ) ) { ; }
else {
print ( '
<script type="text/javascript">
' ) ;
if ( $n1 <> '' ) {
print ( '
document.A.a1.value = '.$n1.' ;
geta() ;
' ) ; }
if ( $n2 <> '' ) {
print ( '
document.B.b1.value = '.$n2.' ;
getb() ;
' ) ; }
print ( '
</script>
' ) ;
}

function displaySource() {
$jw = '/home/esand/public_html' ;
print( '<div style="margin-left: 100px ; text-align: left ; font: 11px Courier ; " >' ) ;
$root = $jw.'/commons' ;
if ( ( $sc = fopen( $root.'/RobinsNumber.php', 'r' ) ) != false ) {
while ( ( $record = fgets( $sc ) ) != false ) {
$record = str_replace( '&', '&amp;', $record ) ;
$record = str_replace( '<', '&lt;', $record ) ;
$record = str_replace( '>', '&gt;', $record ) ;
print( $record.'<br>' ) ;
}
fclose( $sc ) ;
}
else { print( 'File not found in '.$root.'<br>' ) ; }
print( '</div>' ) ;
}
displaySource() ;
?>

<?php
include( 'atBottom.php' ) ;
?>

</body>
</html>

All Rights Reserved. Copyright © 2024 eSand.net
 | Another JustWord webpage | Contact |