<commit_before><!--
      Virtual Globe Demo
-->
<!DOCTYPE html>
<html lang="en">

         <!-- >
            <script type="text/javascript" src="http://benvanik.github.com/WebGL-Inspector/core/embed.js"></script>  
         -->
         <script type="text/javascript" src="../../../external/closure-library/closure/goog/base.js"></script>
         <script type="text/javascript" src="../../../compiled/deps.js"></script>
         <script type="text/javascript">goog.require('owg.engine3d');</script>
         <script type="text/javascript">goog.require('owg.vec4');</script>
         <script type="text/javascript" src="jquery-1.5.2.min.js"></script>
         <script type="text/javascript" src="tools/toolbox.js"></script>
         <script type="text/javascript" src="tools/pickcoordinates.js"></script>
         <script type="text/javascript" src="tools/tool.js"></script>
         <script type="text/javascript" src="tools/coordinates.js"></script>
         <link rel="stylesheet" type="text/css" href="tools/toolstyle.css">
         <link rel="stylesheet" type="text/css" href="styles.css">
  
<style type="text/css">
   
   

                
                
</style>
<script type="text/javascript">
         
         
         
         //---------------------------------------------------------------------
         var engine = null;
       
         
         //---------------------------------------------------------------------
         function OnTimer(delta)
         {
         }
         
         //---------------------------------------------------------------------
         
         function OnResize(w,h)
         {
            width = w;
            height = h;       
         }
         
         //---------------------------------------------------------------------
         function OnKey(key)
         {
         }
         
         //---------------------------------------------------------------------
         function OnMouse(button,x,y)
         {
            var pickresult = new Object();
            engine.PickGlobe(x, y, pickresult);
            
            if (pickresult.hit)
            {
               console.log("PICK: lng: " + pickresult.lng + ", lat: " + pickresult.lat + ", elv:" + pickresult.elv);
               console.log("PICK: x: " + pickresult.x + ", y: " + pickresult.y + ", z:" + pickresult.z);
            }
         }
         
         
         //---------------------------------------------------------------------
         
         function OnRender()
         {  
            var fontcolor = new vec4();
            fontcolor.Set(1,1,0,1);
           // engine.DrawText("OpenWebGlobe for WebGL", 0, height-32,1,fontcolor);
      
            var altitude = engine.AltitudeAboveGround(); altitude = altitude.toFixed(2);
            var elv = engine.AltitudeAboveEllipsoid(); elv = elv.toFixed(2);
            //engine.DrawText("Altitude: "+ altitude+ " (" + elv + ")",  0, height-64,1); 
         }
         
         //---------------------------------------------------------------------
         
         function OnInit()
         { 
         }
        
         //---------------------------------------------------------------------
        
         function main()
         {
            var bMayRun = false;
            if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent))
            {
               var ffversion=new Number(RegExp.$1)
               if (ffversion>=4)
               {
                  bMayRun = true;
               }
            }
            
            if (!bMayRun)
            {
               document.write("<h3>Sorry your browser is now supported</h3> This alpha preview only runs on Firefox 4.");
               alert("Sorry, the alpha preview requires Firefox 4.x. Later versions will support more browsers.");
               return;
            }
            
            engine = new engine3d();
           
            // Set Callbacks:
            engine.SetInitCallback(OnInit);
            engine.SetTimerCallback(OnTimer);
            engine.SetRenderCallback(OnRender);
            engine.SetResizeCallback(OnResize);
            engine.SetKeyDownCallback(OnKey)
            engine.SetMouseDownCallback(OnMouse);
            
            // Start engine...
            
            engine.InitEngine("canvas",true);  // (canvasid, fullscreen)
            engine.CreateScene();               // Create Globe Scene
            engine.SetClearColor(0.5,0.5,1,1);
         }
         
         
         
         $(document).ready(function() {
          
         /*
          *   Top-Row..............................................................
          */       
            $('#divTopRow').click(function(){
              if ( parseInt($('#divTopRow').css("top")) > -80 )
              {
               //scroll up
               $('#divTopRow').animate({top:'-500'},1000,function(){$('#divTopRowTitle').toggle();});
              // $('#canvas').unbind('click');
              }
              else
              {
               //scroll down
               $('#divTopRowTitle').toggle();
               $('#divTopRow').animate({top:'0'},1000,function(){});
              // $('#canvas').click(function(){$('#divTopRow').animate({top:'-500'},1000,function(){$('#divTopRowTitle').toggle();});});
               
              }
             });
        // $('#canvas').click(function(){$('#divTopRow').animate({top:'-500'},1000);});
        
         
          /*
           *   FHNW Logo..............................................................
           */ 
            $('#divFhnwLogo').click(function(){ window.open("http://www.fhnw.ch/homepage");});
            $('#divCampToCamp').click(function(){ window.open("http://www.camptocamp.com");});               
         
         
          /*
           *   Fly to feature..............................................................
           */
          
            $('#divFlyToPullBtn').click(function(){
              if ( parseInt($('#divFlyTo').css("left")) > -1 )
              {
                  $('#divFlyTo').animate({left:'-300'},1000,function(){});
              }
              else
              {
                 $('#divFlyTo').animate({left:'0'},1000,function(){});
              }
             });            
               
            

          /*
           *   Like Buttons (Twitter,Facebook etc.)..................................
           */ 
     <commit_msg>world-demo: top-row handling improved.<commit_after><!--
      Virtual Globe Demo
-->
<!DOCTYPE html>
<html lang="en">

         <!-- >
            <script type="text/javascript" src="http://benvanik.github.com/WebGL-Inspector/core/embed.js"></script>  
         -->
         <script type="text/javascript" src="../../../external/closure-library/closure/goog/base.js"></script>
         <script type="text/javascript" src="../../../compiled/deps.js"></script>
         <script type="text/javascript">goog.require('owg.engine3d');</script>
         <script type="text/javascript">goog.require('owg.vec4');</script>
         <script type="text/javascript" src="jquery-1.5.2.min.js"></script>
         <script type="text/javascript" src="tools/toolbox.js"></script>
         <script type="text/javascript" src="tools/pickcoordinates.js"></script>
         <script type="text/javascript" src="tools/tool.js"></script>
         <script type="text/javascript" src="tools/coordinates.js"></script>
         <link rel="stylesheet" type="text/css" href="tools/toolstyle.css">
         <link rel="stylesheet" type="text/css" href="styles.css">
  
<style type="text/css">
   
   

                
                
</style>
<script type="text/javascript">
         
         
         
         //---------------------------------------------------------------------
         var engine = null;
       
         
         //---------------------------------------------------------------------
         function OnTimer(delta)
         {
         }
         
         //---------------------------------------------------------------------
         
         function OnResize(w,h)
         {
            width = w;
            height = h;       
         }
         
         //---------------------------------------------------------------------
         function OnKey(key)
         {
         }
         
         //---------------------------------------------------------------------
         function OnMouse(button,x,y)
         {
            var pickresult = new Object();
            engine.PickGlobe(x, y, pickresult);
            
            if (pickresult.hit)
            {
               console.log("PICK: lng: " + pickresult.lng + ", lat: " + pickresult.lat + ", elv:" + pickresult.elv);
               console.log("PICK: x: " + pickresult.x + ", y: " + pickresult.y + ", z:" + pickresult.z);
            }
         }
         
         
         //---------------------------------------------------------------------
         
         function OnRender()
         {  
            var fontcolor = new vec4();
            fontcolor.Set(1,1,0,1);
           // engine.DrawText("OpenWebGlobe for WebGL", 0, height-32,1,fontcolor);
      
            var altitude = engine.AltitudeAboveGround(); altitude = altitude.toFixed(2);
            var elv = engine.AltitudeAboveEllipsoid(); elv = elv.toFixed(2);
            //engine.DrawText("Altitude: "+ altitude+ " (" + elv + ")",  0, height-64,1); 
         }
         
         //---------------------------------------------------------------------
         
         function OnInit()
         { 
         }
        
         //---------------------------------------------------------------------
        
         function main()
         {
            var bMayRun = false;
            if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent))
            {
               var ffversion=new Number(RegExp.$1)
               if (ffversion>=4)
               {
                  bMayRun = true;
               }
            }
            
            if (!bMayRun)
            {
               document.write("<h3>Sorry your browser is now supported</h3> This alpha preview only runs on Firefox 4.");
               alert("Sorry, the alpha preview requires Firefox 4.x. Later versions will support more browsers.");
               return;
            }
            
            engine = new engine3d();
           
            // Set Callbacks:
            engine.SetInitCallback(OnInit);
            engine.SetTimerCallback(OnTimer);
            engine.SetRenderCallback(OnRender);
            engine.SetResizeCallback(OnResize);
            engine.SetKeyDownCallback(OnKey)
            engine.SetMouseDownCallback(OnMouse);
            
            // Start engine...
            
            engine.InitEngine("canvas",true);  // (canvasid, fullscreen)
            engine.CreateScene();               // Create Globe Scene
            engine.SetClearColor(0.5,0.5,1,1);
         }
         
         
         
         $(document).ready(function() {
          
         /*
          *   Top-Row..............................................................
          */
         
            var topRowHandling = function(){
              if ( parseInt($('#divTopRow').css("top")) > -80 )
              {
               //scroll up
               $('#divTopRow').animate({top:'-500'},1000,function(){$('#divTopRowTitle').toggle();});
               $('#canvas').unbind('click');
              }
              else
              {
               //scroll down
               $('#divTopRowTitle').toggle();
               $('#divTopRow').animate({top:'0'},1000,function(){});
               $('#canvas').click(topRowHandling);
              }
             };
            $('#divTopRow,#canvas').click(topRowHandling);
                                          
            
       
        
         
          /*
           *   FHNW Logo..............................................................
           */ 
            $('#divFhnwLogo').click(function(){ window.open("http://www.fhnw.ch/homepage");});
            $('#divCampToCamp').click(function(){ window.open("http://www.camptocamp.com");});               
         
         
          /*
           *   Fly to feature..............................................................
           */
          
            $('#divFlyToPullBtn').click(function(){
              if ( parseInt($('#divFlyTo').css("left")) > -1 )
              {
                  $('#divFlyTo').animate({left:'-300'},1000,function(){});
              }
              else
              {
                 $('#divFlyTo').animate({left:'0'},1000,function(){});
              }
             });            
               
            

          /*
           *   Like Buttons (Twitter,Facebook etc.)..................................
           */ 
     
{'fraction_non_alphanumeric': 0.25550490612686394, 'fraction_numerical': 0.010353086610523062, 'mean_word_length': 0.9546964663243733, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 73, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7238925', 'n_tokens_mistral': 3175, 'n_tokens_neox': 3047, 'n_words': 441}