Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(E_ALL);
- $username = "Swapnesh";
- $initial_result = 0;
- if(!$initial_result)
- $status = "fail";
- else
- $status = "pass";
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>This plays SCORM</title>
- <link rel="stylesheet" type="text/css" href="style.css" />
- <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
- <script type="text/javascript">
- jQuery(document).ready(function(){
- jQuery("#click-button").on('click',function(){
- //alert('yup');
- var name = 'swapnesh';
- var url = "http://MYSITEURL.COM/system/player.php?name="+name;
- window.open( url,"_blank");
- });
- });
- </script>
- </head>
- <body>
- <div class="mydiv">
- Click to play a SCORM course. <button id="click-button">Click</button>
- </div>
- <div class="mydiv">
- This is a div to show user info.
- Name = <?php echo $username ?>
- </div>
- <div class="mydiv">
- This is a div to track user info.
- Current result = <span class="<?php echo $status; ?>"><?php echo ucwords($status) ?></span>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment