Advertisement
gildy

Untitled

Feb 12th, 2012
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 18.93 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Kiwwi - Communication World Wide</title>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  5. <meta name="viewport" content="width=device-width; initial-scale = 1.0; maximum-scale=1.0; user-scalable=no"/>
  6. <meta property="og:title" content="Kiwwi"/>
  7. <meta property="og:type" content="social encounter"/>
  8. <meta property="og:site_name" content="Kiwwi"/>
  9. <meta property="og:description" content="mobile web connection test"/>
  10. <meta property="og:image" content="http://www.facebookmobileweb.com/start/img/facebook_icon_large.png"/>
  11. <link rel="apple-touch-icon" href="icon.png"/>
  12. <meta name="apple-mobile-web-app-capable" content="yes"/>
  13. <style>
  14.   #logout { display: none; }
  15.   #afterlogin { display: none; }
  16.   body.connected #login { display: none; }
  17.   body.connected #logout { display: block; }
  18.   body.connected #afterlogin { display: block; }
  19.   body.not_connected #login { display: block; }
  20.   body{
  21.         overflow-x:hidden;
  22.         font-family: Helvetica;
  23.         color: #333333;
  24.         font-size: 16px;
  25.         }
  26.         #container{
  27.             position:absolute;
  28.             top:0px;
  29.             left:0px;
  30.             width:100%;
  31.             min-height:500px;
  32.         background-image:url('bg.jpg');
  33.         }
  34.         #first{
  35.             width:100%;
  36.             height: auto;
  37.             float: right;
  38.             margin-top:0px;
  39.         }
  40.         #basicprofile{
  41.             position:relative;
  42.             right:0px;
  43.             width:145px;
  44.             float:right;
  45.             word-wrap: break-word
  46.         }
  47.         #user-info{
  48.             width:100%;
  49.             font-size: 12px;
  50.             color:#ffffff;
  51.             text-align:center;
  52.             float:right;
  53.             padding: 5px;
  54.             background: -moz-linear-gradient(
  55.         top,
  56.         #cc0033 0%,
  57.         #470101);
  58.     background: -webkit-gradient(
  59.         linear, left top, left bottom,
  60.         from(#cc0033),
  61.         to(#470101));
  62.     border: 0px solid #801a1a;
  63.     -moz-box-shadow:
  64.         0px 1px 3px rgba(000,000,000,0.5),
  65.         inset 0px 0px 1px rgba(255,255,255,0.7);
  66.     -webkit-box-shadow:
  67.         0px 1px 3px rgba(000,000,000,0.5),
  68.         inset 0px 0px 1px rgba(255,255,255,0.7);
  69.     text-shadow:
  70.         0px -1px 0px rgba(000,000,000,0.4),
  71.         0px 1px 0px rgba(255,255,255,0.3);
  72.         }
  73.         #select1{
  74.             width:100%;
  75.             font-size: 16px;
  76.             color:#ffffff;
  77.             text-align:center;
  78.             padding:3px;
  79.         }
  80.         #select2{
  81.             width:80%;
  82.             text-align:center;
  83.             padding:3px;
  84.             -moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
  85.     -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
  86.     box-shadow:inset 0px 1px 0px 0px #ffffff;
  87.     padding:6px 24px;
  88.     margin-left: 7px;
  89.     background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) );
  90.     background-color:#ededed;
  91.     -moz-border-radius:6px;
  92.     -webkit-border-radius:6px;
  93.     border-radius:6px;
  94.     border:1px solid #dcdcdc;
  95.     display:inline-block;
  96.     color:#777777;
  97.     font-family:arial;
  98.     font-size:15px;
  99.     font-weight:bold;
  100.     text-decoration:none;
  101.     text-shadow:1px 1px 0px #ffffff;
  102.         }
  103.         #likess{
  104.             width:80%;
  105.             font-size: 16px;
  106.             color:#ffffff;
  107.             text-align:right;
  108.             margin-bottom:5px;
  109.             padding:3px;
  110.     background: -moz-linear-gradient(
  111.         top,
  112.         #f7bf71 0%,
  113.         #fa880f);
  114.     background: -webkit-gradient(
  115.         linear, left top, left bottom,
  116.         from(#f7bf71),
  117.         to(#fa880f));
  118.     -moz-box-shadow:
  119.         0px 1px 3px rgba(000,000,000,0.5),
  120.         inset 0px 0px 1px rgba(255,255,255,1);
  121.     -webkit-box-shadow:
  122.         0px 1px 3px rgba(000,000,000,0.5),
  123.         inset 0px 0px 1px rgba(255,255,255,1);
  124.     text-shadow:
  125.         0px 0px 1px rgba(000,000,000,0),
  126.         0px 1px 0px rgba(255,255,255,0.3);
  127.         }
  128.    input[type="checkbox"]{
  129.         margin-left:25px;
  130. }
  131. input[type="submit"]{
  132.         position:relative;
  133.         left:38%;
  134. }
  135.       label {
  136.     width:180px;
  137.     -moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
  138.     -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
  139.     box-shadow:inset 0px 1px 0px 0px #ffffff;
  140.     padding:6px 24px;
  141.     margin: 3px;z
  142.     background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) );
  143.     background-color:#ededed;
  144.     -moz-border-radius:6px;
  145.     -webkit-border-radius:6px;
  146.     border-radius:6px;
  147.     border:1px solid #dcdcdc;
  148.     display:inline-block;
  149.     color:#777777;
  150.     font-family:arial;
  151.     font-size:15px;
  152.     font-weight:bold;
  153.     text-decoration:none;
  154.     text-shadow:1px 1px 0px #ffffff;
  155. }
  156.     #myContent {
  157.         position:relative;
  158.         width:70%;
  159.         left:15px;
  160.         margin-bottom:30px;
  161.     -moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
  162.     -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
  163.     box-shadow:inset 0px 1px 0px 0px #ffffff;
  164.     padding:6px 24px;
  165.     margin: 3px;z
  166.     background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) );
  167.     background-color:#ededed;
  168.     -moz-border-radius:6px;
  169.     -webkit-border-radius:6px;
  170.     border-radius:6px;
  171.     border:1px solid #dcdcdc;
  172.     display:inline-block;
  173.     color:#777777;
  174.     font-family:arial;
  175.     font-size:15px;
  176.     font-weight:bold;
  177.     text-decoration:none;
  178.     text-shadow:1px 1px 0px #ffffff;
  179.     }
  180.         #lang{
  181.             width:100%;
  182.             text-align:center;
  183.             float:right;
  184.             margin-top:18px;
  185.             margin-bottom:5px;
  186.         }
  187.         #ntv{
  188.             font-size: 18px;
  189.             color:#ffffff;
  190.             text-align:center;
  191.             padding:7px;
  192.             background: -moz-linear-gradient(
  193.         top,
  194.         #cc0033 0%,
  195.         #470101);
  196.     background: -webkit-gradient(
  197.         linear, left top, left bottom,
  198.         from(#cc0033),
  199.         to(#470101));
  200.     border: 0px solid #801a1a;
  201.     -moz-box-shadow:
  202.         0px 1px 3px rgba(000,000,000,0.5),
  203.         inset 0px 0px 1px rgba(255,255,255,0.7);
  204.     -webkit-box-shadow:
  205.         0px 1px 3px rgba(000,000,000,0.5),
  206.         inset 0px 0px 1px rgba(255,255,255,0.7);
  207.     text-shadow:
  208.         0px -1px 0px rgba(000,000,000,0.4),
  209.         0px 1px 0px rgba(255,255,255,0.3);
  210.         }
  211.         #lrn{
  212.             font-size: 18px;
  213.             color:#ffffff;
  214.             text-align:center;
  215.             padding:7px;
  216.         background: -moz-linear-gradient(
  217.         top,
  218.         #cc0033 0%,
  219.         #470101);
  220.     background: -webkit-gradient(
  221.         linear, left top, left bottom,
  222.         from(#cc0033),
  223.         to(#470101));
  224.     border: 0px solid #801a1a;
  225.     -moz-box-shadow:
  226.         0px 1px 3px rgba(000,000,000,0.5),
  227.         inset 0px 0px 1px rgba(255,255,255,0.7);
  228.     -webkit-box-shadow:
  229.         0px 1px 3px rgba(000,000,000,0.5),
  230.         inset 0px 0px 1px rgba(255,255,255,0.7);
  231.     text-shadow:
  232.         0px -1px 0px rgba(000,000,000,0.4),
  233.         0px 1px 0px rgba(255,255,255,0.3);
  234.         }
  235.         #rest{
  236.             font-size: 18px;
  237.             color:#ffffff;
  238.             text-align:center;
  239.             padding:7px;
  240.             background: -moz-linear-gradient(
  241.         top,
  242.         #cc0033 0%,
  243.         #470101);
  244.     background: -webkit-gradient(
  245.         linear, left top, left bottom,
  246.         from(#cc0033),
  247.         to(#470101));
  248.     border: 0px solid #801a1a;
  249.     -moz-box-shadow:
  250.         0px 1px 3px rgba(000,000,000,0.5),
  251.         inset 0px 0px 1px rgba(255,255,255,0.7);
  252.     -webkit-box-shadow:
  253.         0px 1px 3px rgba(000,000,000,0.5),
  254.         inset 0px 0px 1px rgba(255,255,255,0.7);
  255.     text-shadow:
  256.         0px -1px 0px rgba(000,000,000,0.4),
  257.         0px 1px 0px rgba(255,255,255,0.3);
  258.         }
  259.         .full{
  260.             width:100%;
  261.             height:30px;
  262.         }
  263.         #welcometokiwwi{
  264.             width:70%;
  265.             font-size: 14px;
  266.             color:#ffffff;
  267.             text-align:left;
  268.             background:#333333;
  269.             padding:7px;
  270.             margin-top:15px;
  271.             float:right;
  272.             background: -moz-linear-gradient(
  273.         top,
  274.         #8bcc00 0%,
  275.         #639101);
  276.     background: -webkit-gradient(
  277.         linear, left top, left bottom,
  278.         from(#8bcc00),
  279.         to(#639101));
  280.     -moz-box-shadow:
  281.         0px 0px 0px rgba(000,000,000,0),
  282.         inset 0px 0px 10px rgba(087,087,087,0);
  283.     -webkit-box-shadow:
  284.         0px 0px 0px rgba(000,000,000,0),
  285.         inset 0px 0px 10px rgba(087,087,087,0);
  286.     text-shadow:
  287.         0px -1px 0px rgba(000,000,000,0),
  288.         0px 1px 0px rgba(255,255,255,0);
  289.         }
  290.         #likes{
  291.             width:80%;
  292.             height: 48px;
  293.             font-size: 12px;
  294.             color:#ffffff;
  295.             text-align:left;
  296.             background:#444444;
  297.             padding:7px;
  298.             margin-bottom:10px;
  299.             float:left;
  300.             background: -moz-linear-gradient(
  301.         top,
  302.         #ff9900 0%,
  303.         #ba7104);
  304.     background: -webkit-gradient(
  305.         linear, left top, left bottom,
  306.         from(#ff9900),
  307.         to(#ba7104));
  308.     -moz-box-shadow:
  309.         0px 1px 5px rgba(000,000,000,0.5),
  310.         inset 0px 0px 1px rgba(255,255,255,0.6);
  311.     -webkit-box-shadow:
  312.         0px 1px 5px rgba(000,000,000,0.5),
  313.         inset 0px 0px 1px rgba(255,255,255,0.6);
  314.     text-shadow:
  315.         0px -1px 0px rgba(143,143,143,1),
  316.         0px 1px 0px rgba(255,255,255,0.2);
  317.         }
  318. </style>
  319. <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.js"></script>
  320. </head>
  321. <body onload="setTimeout(function() { window.scrollTo(0, 1) }, 100);">
  322. <div id="container">
  323.     <div id="fb-root">
  324.     </div>
  325.     <script>
  326.   (function() {
  327.     var e = document.createElement('script'); e.async = true;
  328.         e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
  329.         document.getElementById('fb-root').appendChild(e);
  330.         }());
  331.     </script>
  332.     <script>
  333.   window.fbAsyncInit = function() {
  334.     FB.init({ appId: '292022270810548',
  335.       status: true,
  336.       cookie: true,
  337.       xfbml: true,
  338.       oauth: true});
  339.       FB.Event.subscribe('auth.statusChange', handleStatusChange);  
  340.     };
  341.     </script>
  342.     <script>
  343.  function handleStatusChange(response) {
  344.       document.body.className = response.authResponse ? 'connected' : 'not_connected';
  345.       if (response.authResponse) {
  346.         console.log(response);
  347.         updateUserInfo(response);
  348.       }
  349.     }
  350.  </script>
  351.     <div class="full">
  352.         <div class="formoptions" id="welcometokiwwi">
  353.             Welcome to Kiwwi! :)
  354.         </div>
  355.     </div>
  356.     <br/><br/>
  357.     <center>
  358.     <div id="login">
  359.         <p>
  360.             <img src="http://www.teamcrossword.com/Content/fb-login-button.png" onclick="loginUser();"/>
  361.         </p>
  362.     </div>
  363.     </center>
  364.     <script>
  365.    function loginUser() {    
  366.      FB.login(function(response) { }, {scope:'create_note email export_stream friends_about_me friends_activities friends_birthday friends_checkins friends_education_history friends_events friends_games_activity friends_groups friends_hometown friends_interests friends_likes friends_location friends_notes friends_online_presence friends_photo_video_tags friends_photos friends_questions friends_relationship_details friends_relationships friends_religion_politics friends_status friends_subscriptions friends_website friends_work_history manage_friendlists manage_notifications manage_pages offline_access photo_upload publish_actions publish_checkins publish_stream read_friendlists read_insights read_mailbox read_requests read_stream share_item status_update user_about_me user_activities user_birthday user_checkins user_education_history user_events user_games_activity user_groups user_hometown user_interests user_likes user_location user_notes user_online_presence user_photo_video_tags user_photos user_questions user_relationship_details user_relationships user_religion_politics user_status user_subscriptions user_website user_work_history'});    
  367.      }
  368.  </script>
  369.     <!-- Get user's name and profile -->
  370.     <div id="afterlogin">
  371.         <div id="user-info">
  372.         </div>
  373.         <div id="dbform">
  374.             <form name="userinfo" action="gettest.php" method="post">
  375.                 <div class="formoptions" id="select1">
  376.                 </div>
  377.                 <div class="formoptions" id="select2">
  378.                      Set your weight preference<br/>
  379.                     <span>Encounter Friends Likes</span><br/>
  380.                     <span></span>
  381.                     <select name="lweight">
  382.                         <option value="3" selected>3</option>
  383.                         <option value="2">2</option>
  384.                         <option value="1">1</option>
  385.                     </select>
  386.                     <span></span>
  387.                     <select name="fweight">
  388.                         <option value="3">3</option>
  389.                         <option value="2" selected>2</option>
  390.                         <option value="1">1</option>
  391.                     </select>
  392.                     <span></span>
  393.                     <select name="iweight">
  394.                         <option value="3">3</option>
  395.                         <option value="2">2</option>
  396.                         <option value="1" selected>1</option>
  397.                     </select>
  398.                 </div>
  399.                 <br/>
  400.                 <br/>
  401.                 <div class="formoptions" id="rest">
  402.                     Set your language preference<br/>
  403.                 </div>
  404.                 <div class="formoptions">
  405.                     <div id="ntv">
  406.                          Native :
  407.                         <select name="nativelanglist">
  408.                         </select>
  409.                         <br/>
  410.                     </div>
  411.                     <div id="lrn">
  412.                          Wanna Improve:
  413.                         <select name="learnlanglist">
  414.                         </select>
  415.                     </div>
  416.                 </div>
  417.                 <br/><br/>
  418.                 <div class="formoptions" id="likess">
  419.                     Select your likes :
  420.                 </div>
  421.                 <input id="submitbutton" type="submit" name="formSubmit" value="Submit"/>
  422.                 <br/>
  423.             </form>
  424.         </div>
  425.         <div id="myContent">
  426.             Current Kiwwi Users <br/><br/>
  427.         </div>
  428.     </div>
  429.     <script>
  430.     function addOption(selectbox,text,value){
  431.         var optn = document.createElement('option');
  432.         optn.text = text;
  433.         optn.value= value;
  434.         selectbox.options.add(optn);
  435.     }
  436.     function addHiddenValue(name,value){
  437.         var Elem = document.createElement("input");
  438.         Elem.setAttribute("type","hidden");
  439.         Elem.setAttribute("value", value);
  440.         Elem.setAttribute("name", name);
  441.         document.userinfo.appendChild(Elem);
  442.     }
  443.     function addCheck(value,isChecked){
  444.     var cb = document.createElement('input'); // create input node
  445.     var label = document.createElement('label');
  446.     cb.type = "checkbox"; // set type
  447.     cb.name = "checkboxlikes[]"; // set name if necessary
  448.     cb.value = value;
  449.     cb.checked = cb.defaultChecked = isChecked; // make it checked now and by default
  450.     label.htmlFor = "checkbox";
  451.     label.id = "likesoptions";
  452.     label.appendChild(document.createTextNode(value));
  453.     //document.userinfo.appendChild(document.createElement('<input type="checkbox" name="checkboxlikes" value='+ value +' />'+ value +'<br />'));
  454.     // gets the reference tag
  455.   var submitbutton = document.getElementById('submitbutton');
  456.   // add 'new_h3' before 'reference', inside body
  457.   document.userinfo.insertBefore(cb, submitbutton);
  458.   document.userinfo.insertBefore(label, submitbutton);
  459.   document.userinfo.insertBefore(document.createElement('br'), submitbutton);
  460.     }
  461.    function updateUserInfo(response) {
  462.          //////browser editing november 2///////////////
  463. $.getJSON('http://kiwwi.3ird.me/kiwwiapi.php', function(json) {
  464.   $.each(json,function() {
  465.       $.each(this, function() {
  466.         // 'this' is the current object of the iteration loop
  467.         $('#myContent').append('<img src="https://graph.facebook.com/' + this.id + '/picture" />');
  468.     });
  469.   });
  470. });
  471.            /////////////////////////////////////////////////
  472.      FB.api('/me', function(response) {
  473.     document.getElementById('user-info').innerHTML = '<a id="clickhere" onclick="parent.location=\'http://kiwwi.3ird.me/index_ios.php?fbid=' + response.id + '\'">Click here if you already finished your initial setting.<br/>初期設定済みの方はこちらにタップして、お進みください。<br/><img src="https://graph.facebook.com/' + response.id + '/picture?type=large" /></a><br />' ;
  474.        //document.getElementById('user-info').innerHTML += response.name + '<br />' + response.username + '<br />' + response.birthday + '<br />' + response.bio + '<br />' + response.hometown.name + '<br />' + response.locale;
  475.         addHiddenValue('fbid',response.id);
  476.         addHiddenValue('fbname',response.name);
  477.         addHiddenValue('bday',response.birthday);
  478.         addHiddenValue('hometown',response.hometown.name);
  479.         addHiddenValue('bio',response.bio);
  480.         $.getJSON('http://kiwwi.3ird.me/kiwwiapi.php', function(json) {
  481.   $.each(json,function() {
  482.       $.each(this, function() {
  483.         // 'this' is the current object of the iteration loop
  484.        // $('#myContent').append('<img src="https://graph.facebook.com/' + this.id + '/picture" />');
  485.         if(response.id==this.id){
  486.             //$('#myContent').append('you are registered');
  487.             setTimeout("location.href='http://kiwwi.3ird.me/myprofile.php?fbid=" + this.id + "'",500);
  488.         }
  489.         //$('#myContent').append('Name: '+ this.name);
  490.     });
  491.   });
  492. });
  493.        var i=0;
  494.        var langs='';
  495.        while (response.languages[i]!=null){
  496.             addOption(document.userinfo.nativelanglist,response.languages[i].name,response.languages[i].name);
  497.             langs+=response.languages[i].name;
  498.             langs+='^';
  499.             i++;
  500.        }
  501.        addHiddenValue('total_langs',i);
  502.        addHiddenValue('langs',langs);
  503.        i=0;
  504.        while (response.languages[i]!=null){
  505.             addOption(document.userinfo.learnlanglist,response.languages[i].name,response.languages[i].name);
  506.             i++;
  507.        }
  508. addOption(document.userinfo.learnlanglist,"----Other:----","");
  509. addOption(document.userinfo.learnlanglist,"Arabic","Arabic");
  510. addOption(document.userinfo.learnlanglist,"Bengali","Bengali");
  511. addOption(document.userinfo.learnlanglist,"Catalan","Catalan");
  512. addOption(document.userinfo.learnlanglist,"Dutch","Dutch");
  513. addOption(document.userinfo.learnlanglist,"English","English");
  514. addOption(document.userinfo.learnlanglist,"French","French");
  515. addOption(document.userinfo.learnlanglist,"German","German");
  516. addOption(document.userinfo.learnlanglist,"Greek","Greek");
  517. addOption(document.userinfo.learnlanglist,"Gujarati","Gujarati");
  518. addOption(document.userinfo.learnlanglist,"Hindi-Urdu","Hindi-Urdu");
  519. addOption(document.userinfo.learnlanglist,"Hungarian","Hungarian");
  520. addOption(document.userinfo.learnlanglist,"Indonesian","Indonesian");
  521. addOption(document.userinfo.learnlanglist,"Italian","Italian");
  522. addOption(document.userinfo.learnlanglist,"Japanese","Japanese");
  523. addOption(document.userinfo.learnlanglist,"Javanese","Javanese");
  524. addOption(document.userinfo.learnlanglist,"Korean","Korean");
  525. addOption(document.userinfo.learnlanglist,"Malay","Malay");
  526. addOption(document.userinfo.learnlanglist,"Mandarin","Mandarin");
  527. addOption(document.userinfo.learnlanglist,"Nepali","Nepali");
  528. addOption(document.userinfo.learnlanglist,"Persian","Persian");
  529. addOption(document.userinfo.learnlanglist,"Polish","Polish");
  530. addOption(document.userinfo.learnlanglist,"Portuguese","Portuguese");
  531. addOption(document.userinfo.learnlanglist,"Punjabi","Punjabi");
  532. addOption(document.userinfo.learnlanglist,"Romanian","Romanian");
  533. addOption(document.userinfo.learnlanglist,"Russian","Russian");
  534. addOption(document.userinfo.learnlanglist,"Rwanda-Rundi","Rwanda-Rundi");
  535. addOption(document.userinfo.learnlanglist,"Spanish","Spanish");
  536. addOption(document.userinfo.learnlanglist,"Sundanese","Sundanese");
  537. addOption(document.userinfo.learnlanglist,"Tagalog","Tagalog");
  538. addOption(document.userinfo.learnlanglist,"Tamil","Tamil");
  539. addOption(document.userinfo.learnlanglist,"Thai","Thai");
  540. addOption(document.userinfo.learnlanglist,"Turkish","Turkish");
  541. addOption(document.userinfo.learnlanglist,"Ukrainian","Ukrainian");
  542. addOption(document.userinfo.learnlanglist,"Vietnamese","Vietnamese");
  543.      });
  544.        FB.api('/me/friends/&fields=name,picture', function(response) {
  545.     console.log('Got friends: ', response);
  546.      if (!response.error) {
  547.        var markup = '';
  548.        var friends = response.data;
  549.        var friendsarray='';
  550.        for (var i=0; i < friends.length; i++) {
  551.         var friend = friends[i];
  552.         friendsarray += friend.id + '^';
  553.       }
  554.       addHiddenValue('total_friends',friends.length);
  555.       addHiddenValue('friendsarray',friendsarray);
  556.     }
  557.   });
  558.     FB.api('/me/likes&fields=name', function(response) {
  559.     console.log('Got likes: ', response);
  560.     if (!response.error) {
  561.       var markup = '';
  562.       var likes = response.data;
  563.       for (var i=0; i < likes.length ; i++) {
  564.         var like = likes[i];
  565.         addCheck(like.name,true);
  566.       }
  567.       document.userinfo.insertBefore(document.createElement('br'), submitbutton);
  568.     }
  569.   });
  570.   }
  571. </script>
  572. </div>
  573. </body>
  574. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement