KARTU BIMBINGAN TUGAS AKHIR MAHASISWA

1 KEMENTERIAN PENDIDIKAN NASIONAL UNIVERSITAS SUMATERA UTARA FAKULTAS MATEMATIKA DAN ILMU PENGETAHUAN ALAM Jl. Bioteknologi No.1 Kampus USU Padang Bul...
Author:  Sri Pranata

22 downloads 236 Views 660KB Size


<script type="text/javascript"> $(document).ready(function() {

Universitas Sumatera Utara

var pageTitle = document.title; //HTML page title var pageUrl = location.href; //Location of the page //user hovers on the share button $('#share-wrapper li').hover(function() { var hoverEl = $(this); //get element //browsers with width > 699 get button slide effect

switch (shareName) //switch to different links based on different social name { case 'facebook': var openLink = 'https://www.facebook.com/sh arer/sharer.php?u=' + encodeURIComponent(pageUrl) + '&title=' + encodeURIComponent(pageTitle ); break; case 'twitter':

if($(window).width() > 699) { if (hoverEl.hasClass('visible') ){ hoverEl.animate({"margi n-left":"-117px"}, "fast").removeClass('visible '); } else { hoverEl.animate({"margi n-left":"0px"}, "fast").addClass('visible'); } } }); //user clicks on a share button $('.buttonwrap').click(function(event) { var shareName = $(this).attr('class').split( ' ')[0]; //get the first class name of clicked element

var openLink = 'http://twitter.com/home?sta tus=' + encodeURIComponent(pageTitle + ' ' + pageUrl); break; case 'digg': var openLink = 'http://www.digg.com/submit? phase=2&url=' + encodeURIComponent(pageUrl) + '&title=' + encodeURIComponent(pageTitle ); break; case 'stumbleupon': var openLink = 'http://www.stumbleupon.com/ submit?url=' + encodeURIComponent(pageUrl) + '&title=' + encodeURIComponent(pageTitle ); break;

Universitas Sumatera Utara

case

',top=' ',left='

'delicious': var openLink = 'http://del.icio.us/post?url =' + encodeURIComponent(pageUrl) + '&title=' + encodeURIComponent(pageTitle ); break; case

+ winTop + winLeft;

+

//open Popup window and redirect user to share website. window.open(openLink,'S hare This Link',winOptions); return false; }); });

'google': var openLink = 'https://plus.google.com/sha re?url=' + encodeURIComponent(pageUrl) + '&title=' + encodeURIComponent(pageTitle ); break; case 'email': var openLink = 'mailto:?subject=' + pageTitle + '&body=Found this useful link for you : ' + pageUrl; break;



winHeight = 450; winLeft = ($(window).width() winWidth) / 2, winTop = ($(window).height() winHeight) / 2, winOptions = 'width=' + winWidth + ',height=' + winHeight +



Universitas Sumatera Utara

Kirim-pesan.php <script type="text/javascript"> alert("Pesan Terkirim...!!!"); "; ?>

Universitas Sumatera Utara