<commit_before>﻿<%--
  Flytrace, online viewer for GPS trackers.
  Copyright (C) 2011-2014 <NAME>
  
  This file is part of Flytrace.
  
  Flytrace is free software: you can redistribute it and/or modify
  it under the terms of the GNU Affero General Public License as
  published by the Free Software Foundation, either version 3 of the
  License, or (at your option) any later version.
  
  Flytrace is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU Affero General Public License for more details.
  
  You should have received a copy of the GNU Affero General Public License
  along with Flytrace.  If not, see <http://www.gnu.org/licenses/>.
--%>
<%@  AutoEventWireup="true" EnableViewState="true" Language="C#" CodeBehind="map.aspx.cs"
    Inherits="FlyTrace.MapForm" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>
        <%=GroupName %>
        - Multi Tracker View</title>
    <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0" />
    <script type="text/javascript">
        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'UA-44990201-1']);
        _gaq.push(['_setDomainName', 'flytrace.com']);
        _gaq.push(['_setAllowLinker', true]);
        _gaq.push(['_trackPageview']);

        (function () {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();
    </script>
    <script type="text/javascript">
        var _ie8_or_less = false;
    </script>
    <%--Comment below is not a real one but rather an "IE conditional comment", 
        DO NOT CHANGE OR REMOVE IT, THE CODE INSIDE ACTUALLY WORKS IN IE 8 OR LESS --%>
    <!--[if lte IE 8]>
    <script type="text/javascript">
        _ie8_or_less = true;
    </script>
    <![endif]-->
    <link href="App_Themes/Default/site2.css" type="text/css" rel="stylesheet" />
    <style type="text/css">
        #listPanel tr:nth-child(even)
        {
            background: #CCC;
        }
        #listPanel tr:nth-child(odd)
        {
            background: #FFF;
        }
        .infoUsrMsg
        {
            width: 12em;
            margin-bottom: 0.5em;
        }
    </style>
    <% 
        Response.Write(
            string.Format(
                "\n\n<script type=\"text/javascript\">\nvar _logoSource='{0}';\n</script>\n",
                OwnerId == AdvRiderUserId
                ? "add/logo1.png"
                : "" ) );

    %>
    <% 
        bool sensor;
        if ( !bool.TryParse( this.Request.Params["sensor"], out sensor ) )
        {
            sensor = true;
        }

        bool shouldLog;
        if ( !bool.TryParse( this.Request.Params["log"], out shouldLog ) )
        {
            shouldLog = false;
        }

        Response.Write(
            string.Format(
                "<script type=\"text/javascript\" src=\"http://maps.googleapis.com/maps/api/js?key=AIzaSyBQjcGGONlL8Ppv0qFJTBiJeqZSMrwaH8g&sensor={0}\">\n</script>",
                sensor ? "true" : "false" ) );

        Response.Write(
            string.Format(
                "\n\n<script type=\"text/javascript\">\nvar _useLocationSensor={0};\n</script>\n",
                sensor ? "true" : "false" ) );

        Response.Write( "\n<script type=\"text/javascript\">" );
        Response.Write( string.Format( "var _groupId = {0}\n", GroupId ) );
        Response.Write( string.Format( "var _shouldLog = {0}", shouldLog ? "true" : "false" ) ); // without that it's written like "True"/"False" and probably could even be loc.problems.
        Response.Write( "</script>\n" );

        if ( MapCenterLat.HasValue && MapCenterLon.HasValue )
        {
            Response.Write( "\n<script type=\"text/javascript\">" );
            Response.Write( string.Format( "var _mapCenterLat = {0}\n", MapCenterLat.Value ) );
            Response.Write( string.Format( "var _mapCenterLon = {0}\n", MapCenterLon.Value ) );
            Response.Write( "</script>\n" );
        }
    %>
    <script type="text/javascript">
        var _reloadLatId = '<%= reloadLat.ClientID %>';
        var _reloadLonId = '<%= reloadLon.ClientID %>';
        var _reloadZoomId = '<%= reloadZoom.ClientID %>';
    </script>
    <script type="text/javascript" src="Scripts/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="Scripts/labelMapControl.js?ver=3">
    </script>
    <script type="text/javascript" src="Scripts/buttonMapControl.js?ver=3">
    </script>
    <script type="text/javascript" src="Scripts/date.format.js">
    </script>
    <script type="text/javascript" src="Scripts/main.js?ver=61">
    </script>
</head>
<body onload="initialize()">
    <form id="defaultForm" runat="server" style="height: 100%">
    <div>
        <asp:HiddenField ID="reloadLat" runat="server" />
        <asp:HiddenField ID="reloadLon" runat="server" />
        <asp:HiddenField ID="reloadZoom" runat="server" />
        <div id="header"><commit_msg>Bump up version in the script reference<commit_after>﻿<%--
  Flytrace, online viewer for GPS trackers.
  Copyright (C) 2011-2014 <NAME>
  
  This file is part of Flytrace.
  
  Flytrace is free software: you can redistribute it and/or modify
  it under the terms of the GNU Affero General Public License as
  published by the Free Software Foundation, either version 3 of the
  License, or (at your option) any later version.
  
  Flytrace is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU Affero General Public License for more details.
  
  You should have received a copy of the GNU Affero General Public License
  along with Flytrace.  If not, see <http://www.gnu.org/licenses/>.
--%>
<%@  AutoEventWireup="true" EnableViewState="true" Language="C#" CodeBehind="map.aspx.cs"
    Inherits="FlyTrace.MapForm" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>
        <%=GroupName %>
        - Multi Tracker View</title>
    <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0" />
    <script type="text/javascript">
        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'UA-44990201-1']);
        _gaq.push(['_setDomainName', 'flytrace.com']);
        _gaq.push(['_setAllowLinker', true]);
        _gaq.push(['_trackPageview']);

        (function () {
            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();
    </script>
    <script type="text/javascript">
        var _ie8_or_less = false;
    </script>
    <%--Comment below is not a real one but rather an "IE conditional comment", 
        DO NOT CHANGE OR REMOVE IT, THE CODE INSIDE ACTUALLY WORKS IN IE 8 OR LESS --%>
    <!--[if lte IE 8]>
    <script type="text/javascript">
        _ie8_or_less = true;
    </script>
    <![endif]-->
    <link href="App_Themes/Default/site2.css" type="text/css" rel="stylesheet" />
    <style type="text/css">
        #listPanel tr:nth-child(even)
        {
            background: #CCC;
        }
        #listPanel tr:nth-child(odd)
        {
            background: #FFF;
        }
        .infoUsrMsg
        {
            width: 12em;
            margin-bottom: 0.5em;
        }
    </style>
    <% 
        Response.Write(
            string.Format(
                "\n\n<script type=\"text/javascript\">\nvar _logoSource='{0}';\n</script>\n",
                OwnerId == AdvRiderUserId
                ? "add/logo1.png"
                : "" ) );

    %>
    <% 
        bool sensor;
        if ( !bool.TryParse( this.Request.Params["sensor"], out sensor ) )
        {
            sensor = true;
        }

        bool shouldLog;
        if ( !bool.TryParse( this.Request.Params["log"], out shouldLog ) )
        {
            shouldLog = false;
        }

        Response.Write(
            string.Format(
                "<script type=\"text/javascript\" src=\"http://maps.googleapis.com/maps/api/js?key=AIzaSyBQjcGGONlL8Ppv0qFJTBiJeqZSMrwaH8g&sensor={0}\">\n</script>",
                sensor ? "true" : "false" ) );

        Response.Write(
            string.Format(
                "\n\n<script type=\"text/javascript\">\nvar _useLocationSensor={0};\n</script>\n",
                sensor ? "true" : "false" ) );

        Response.Write( "\n<script type=\"text/javascript\">" );
        Response.Write( string.Format( "var _groupId = {0}\n", GroupId ) );
        Response.Write( string.Format( "var _shouldLog = {0}", shouldLog ? "true" : "false" ) ); // without that it's written like "True"/"False" and probably could even be loc.problems.
        Response.Write( "</script>\n" );

        if ( MapCenterLat.HasValue && MapCenterLon.HasValue )
        {
            Response.Write( "\n<script type=\"text/javascript\">" );
            Response.Write( string.Format( "var _mapCenterLat = {0}\n", MapCenterLat.Value ) );
            Response.Write( string.Format( "var _mapCenterLon = {0}\n", MapCenterLon.Value ) );
            Response.Write( "</script>\n" );
        }
    %>
    <script type="text/javascript">
        var _reloadLatId = '<%= reloadLat.ClientID %>';
        var _reloadLonId = '<%= reloadLon.ClientID %>';
        var _reloadZoomId = '<%= reloadZoom.ClientID %>';
    </script>
    <script type="text/javascript" src="Scripts/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="Scripts/labelMapControl.js?ver=3">
    </script>
    <script type="text/javascript" src="Scripts/buttonMapControl.js?ver=3">
    </script>
    <script type="text/javascript" src="Scripts/date.format.js">
    </script>
    <script type="text/javascript" src="Scripts/main.js?ver=62">
    </script>
</head>
<body onload="initialize()">
    <form id="defaultForm" runat="server" style="height: 100%">
    <div>
        <asp:HiddenField ID="reloadLat" runat="server" />
        <asp:HiddenField ID="reloadLon" runat="server" />
        <asp:HiddenField ID="reloadZoom" runat="server" />
        <div id="header">
{'fraction_non_alphanumeric': 0.15646757053865884, 'fraction_numerical': 0.011909124221326494, 'mean_word_length': 2.4668148618609083, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 119, 'https://': 2, 'lorem ipsum': 0, 'www.': 8, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3659841', 'n_tokens_mistral': 3561, 'n_tokens_neox': 3390, 'n_words': 775}