




The Joker of The Guardians
Watashi wa....
kalkulator kalkulator kalkulator.....
Ne scriptna..
<html>
<head>
<title>Elsite- Calculator</title>
<script language="Javascript">
<!--
/* Variablen definieren */
var plussign = ' + ';
var minussign = ' - ';
var multiplysign = ' * ';
var dividesign = ' / ';
var decimalsign = ' . ';
var negativesign = ' -';
var leftbracket = ' (';
var rightbracket = ') ';
var rad = 3.141592654 / 180;
var base_10 = Math.LN10;
var base_2 = Math.LN10;
function calculate(arg) {
arg.expr.value = eval(arg.expr.value)
}
function enter(arg, string) {
arg.expr.value += string
}
function clear_display(arg) {
arg.expr.value = ' '
}
function calc_sqrt(form) {
form.expr.value = (Math.sqrt(form.expr.value))
}
function calc_sqr(form) {
form.expr.value = ((form.expr.value * 1) * (form.expr.value * 1))
}
function sin_form(form) {
form.expr.value = (Math.sin (form.expr.value * rad))
}
function cos_form(form) {
form.expr.value = (Math.cos (form.expr.value * rad))
}
function tan_form(form) {
form.expr.value = (Math.tan(form.expr.value * rad))
}
function inverse(form) {
form.expr.value = ( 1 / (form.expr.value))
}
function base10_log(form) {
form.expr.value = (Math.log(form.expr.value) / base_10)
}
function base2_log(form) {
form.expr.value = (Math.log(form.expr.value) / base_2)
}
//-->
</script>
</head>
<body>
<p align="center"><big><big>CALCULATOR</big></big></p>
<form>
<!-- Yup, Mulai -->
<table border="0" width="100" bgcolor="lightblue" align="center">
<tr>
<td width="100%" colspan="5" align="center"><input type="text" name="expr" size="35"
action="calculate(this.form)"></td>
</tr>
<tr>
<td width="100%" colspan="5" align="center">Powered By Elsiters</td>
</tr>
<tr>
<td width="20%"><input type="button" value=" sin " Onclick="sin_form(this.form)"></td>
<td width="20%"><input type="button" value=" cos " OnClick="cos_form(this.form)"></td>
<td width="20%"><input type="button" value=" tan " Onclick="tan_form(this.form)"></td>
<td width="20%"><input type="button" value=" log 10e " onClick="base10_log(this.form)"></td>
<td width="20%"><input type="button" value=" log 2e " OnClick="base2_log(this.form)"></td>
</tr>
<tr>
<td width="20%"><input type="button" value=" akar " Onclick="calc_sqrt(this.form)"></td>
<td width="20%"><input type="button" value=" ^2 " OnClick="calc_sqr(this.form)"></td>
<td width="20%"><input type="button" value=" ( " OnClick="enter(this.form,leftbracket)"></td>
<td width="20%"><input type="button" value=" ) " OnClick="enter(this.form,rightbracket)"></td>
<td width="20%"><input type="button" value=" 1 / X " OnClick="inverse(this.form)"></td>
</tr>
<tr>
<td width="20%"><input type="button" value=" 7 " onClick="enter(this.form, 7)"></td>
<td width="20%"><input type="button" value=" 8 " onClick="enter(this.form, 8)"></td>
<td width="20%"><input type="button" value=" 9 " onClick="enter(this.form, 9)"></td>
<td width="20%"><input type="button" value=" bagi " onClick="enter(this.form,dividesign)"></td>
<td width="20%"><input type="button" value=" %(rusak) " onClick="enter(this.form,Percentbuttonsign)"></td>
</tr>
<tr>
<td width="20%"><input type="button" value=" 4 " onClick="enter(this.form, 4)"></td>
<td width="20%"><input type="button" value=" 5 " onClick="enter(this.form, 5)"></td>
<td width="20%"><input type="button" value=" 6 " onClick="enter(this.form, 6)"></td>
<td width="20%"><input type="button" value=" kali " onClick="enter(this.form, multiplysign)"> </td>
<td width="20%"> <input type="button" value=" Hapus " onClick="clear_display(this.form)"></td>
</tr>
<tr>
<td width="20%"><input type="button" value=" 1 " onClick="enter(this.form, 1)"></td>
<td width="20%"><input type="button" value=" 2 " onClick="enter(this.form, 2)"></td>
<td width="20%"><input type="button" value=" 3 " onClick="enter(this.form, 3)"></td>
<td width="20%"><input type="button" value=" plus " onClick="enter(this.form,plussign)"> </td>
<td width="20%"><input type="button" value=" Jadina = " onClick="calculate(this.form)">
</td>
</tr>
<tr>
<td width="20%"><input type="button" value=" 0 " onClick="enter(this.form, 0)"></td>
<td width="20%"><input type="button" value=" koma " onClick="enter(this.form,decimalsign)"></td>
<td width="20%"><input type="button" value=" (-) " onClick="enter(this.form,negativesign)"></td>
<td width="40%" colspan="2"> <input type="button" value=" min " onClick="enter(this.form,minussign)"></td>
</tr>
</table>
<!-- Bisa.... -->
</form>
</body>
</html>
Tugas N Jawaban Posting Calculator
<br>
1. Apa nama title skrip javascript tersebut ?
TitLenya : Elsite- Calculator
<br>
2. ekstensi file Skrip tersebut disimpan dengan file ber-ekstensi jenis ?
Skrip tersebut disimpan dengan file berekstensi jenis HTML (*.html)
<br>
3. berapa jumlah variabel yang didefinisikan dalam file tersebut !
Jumlan variabelnya ada 11.
<br>
4. Berapa jumlah fungsi yang ada didalam skrip tersebut !
Jumlah fungsinya ada 11.
<br>
5. Tuliskan nama semua variabel skrip javascript tersebut ?
var plussign = ' + ';
var minussign = ' - ';
var multiplysign = ' * ';
var dividesign = ' / ';
var decimalsign = ' . ';
var negativesign = ' -';
var leftbracket = ' (';
var rightbracket = ') ';
var rad = 3.141592654 / 180;
var base_10 = Math.LN10;
var base_2 = Math.LN10;
<br>
6. Tuliskan nama semua fungsi skrip tersebut ?
function calculate(arg)
function enter(arg, string)
function clear_display(arg)
function calc_sqrt(form)
function calc_sqr(form)
function sin_form(form)
function cos_form(form)
function tan_form(form)
function inverse(form)
function base10_log(form)
function base2_log(form)
<br>
7. Tuliskan skrip untuk membuat tampilan display pada skrip tersebut !
<input type="text" name="expr" size="35"
action="calculate(this.form)">
<br>
8. Tuliskan skrip untuk membuat 1 tombol !
<input type="button" value=" sin " Onclick="sin_form(this.form)">
<br>
9. Tuliskan fungsi jika tombol = ditekan oleh mouse !
<input type="button" value=" = " onClick="calculate(this.form)">
<br>
10. Tuliskan skrip untuk membersihkan display !
<input type="button" value=" C " onClick="clear_display(this.form)">
<br>
Shugo Chara! (しゅごキャラ!, Shugo Kyara!?) is a Japanese shōjo manga series created by the manga author duo, Peach-Pit. The story centers on elementary schoolgirl Amu Hinamori, whose popular exterior, referred to as "cool and spicy" by her classmates, contrasts with her introverted personality. When Amu wishes for the courage to be reborn as her would-be self, she is surprised to find three colorful eggs the next morning, which hatch into three Guardian Characters: Ran, Miki, and Su.
The heroine of the story, Amu Hinamori, is a student at Seiyo Elementary. At first glance, her classmates deem her "cool and spicy" and rumors speculate about her personal life. However, her real personality is that of a very shy girl who has trouble showing her true personality. One night, Amu wishes for the courage to show her "would-be" self, and the next morning finds three brightly colored eggs—red, blue, and green—in her bed. At first, she is alarmed, but realizes she must have really wished to change. These eggs hatch into three Guardian Characters: Ran, Miki, and Su. The Guardian Characters aid Amu in discovering who she truly is and help fulfill Amu's dreams. Amu's life becomes much more complex as she struggles to deal with her "would-be" selves and the Seiyo Elementary's Guardians, who recruit Amu to search for X Eggs and X Characters, the corrupted forms of peoples' dreams.
Meanwhile, the Easter Company is extracting people's eggs in search of a special egg called the Embryo. The Embryo is believed to able to grant any wish to the one who possesses it. However, the process creates X Eggs and X Characters.
Diamond is Amu's fourth Guardian Character, with a musical flair. She became an X egg, and then hatched as an X Character in after being discovered by Utau. Unlike previous X Characters, she had a human like form, with 60's styled clothes, instead of being a black human shape with an "X" on the forehead. Shortly after this, the character that emerged performed a Character Transforms with Utau, becoming "Dark Jewel," and made a reappearance in a fight against Amulet Angel. Her special moves with Utau were "Shining Black," in which a dark light attacks the opponent and "Glitter Particle," where a strong wave of energy overwhelms her opponents, disabling their Character Transformations. Dia became an X egg because of the change in surroundings, like Kukai graduating and Nadeshiko studying abroad.
As Amu does not know Dia's real name, and still does not, she just calls her "Dia", a shorter form of "Diamond".
Later on, Amu purifies Dia, sparking a Character Transformation, and making both lock and key react and "Amulet Diamond" was formed. Amu wears a futuristic, yellow and cream colored idol outfit, with pleats on the inside of the uniform and pigtails, with a white headband. The Humpty Lock shines yellow. Her skill is "Starlight Navigation," an attack involving rings of light. Dia's true form differs from her X-form; her true self is portrayed as a rather giddy and excited character, much like an idol may appear, whereas her X-self was often seen as inapproachable. Her outfit changes from a 60s style dress, to a two piece with white boots. Her hair, which was at first portrayed as a 60s-style ponytail, became pigtails—both hairstyles included incredibly long hair, much unlike Amu's other characters. She has red (orange) hair and orange eyes.
Dia went back into her egg for slumber after transforming with Amu, waiting for Amu to shine again. But she secretly come out at times.