Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

end of 1st sprint - v1

  • Loading branch information...
commit 9286e6dbd46cdd959ea93a44133222cd3efe787e 1 parent 6745e64
Irina Adamoaia authored
BIN  IT_Cint.Tests/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown
1  IT_Cint.Tests/obj/Debug/IT_Cint.Tests.csproj.FileListAbsolute.txt
... ... @@ -1 +1,2 @@
1 1 c:\users\irina\documents\visual studio 2010\Projects\IT_Cint\IT_Cint.Tests\obj\Debug\ResolveAssemblyReference.cache
  2 +C:\Users\Irina\Documents\Visual Studio 2010\Projects\IT_Cint\Cint-test\IT_Cint.Tests\obj\Debug\ResolveAssemblyReference.cache
BIN  IT_Cint.suo
Binary file not shown
48 IT_Cint/Content/Cint.css
... ... @@ -0,0 +1,48 @@
  1 +#main
  2 + {
  3 + float: left;
  4 + width: 90%;
  5 + margin: 0 auto;
  6 + }
  7 +
  8 + #map
  9 + {
  10 + width:500px;
  11 + height:500px;
  12 + float: left;
  13 + border: 1px solid blue;
  14 + padding: 5px;
  15 + }
  16 +
  17 + #list
  18 + {
  19 + width:200px;
  20 + background:#eee;
  21 + list-style:none;
  22 + padding:0;
  23 + float: left;
  24 + margin: 0 5px;
  25 + }
  26 +
  27 + #list li
  28 + {
  29 + padding:10px;
  30 + }
  31 +
  32 + #list li:hover
  33 + {
  34 + background: #5C87B2;
  35 + color:#fff;
  36 + cursor:pointer;
  37 + cursor:hand;
  38 + }
  39 +
  40 + #message
  41 + {
  42 + position:absolute;
  43 + padding:10px;
  44 + background:#555;
  45 + color:#fff;
  46 + width:75px;
  47 +
  48 + }
2  IT_Cint/Content/Site.css
@@ -125,6 +125,8 @@ page width. Or, you can specify an exact pixel width. */
125 125 line-height: normal;
126 126 margin: 0;
127 127 font-size: .9em;
  128 + clear: left;
  129 +
128 130 }
129 131
130 132 /* TAB MENU
1  IT_Cint/IT_Cint.csproj
@@ -74,6 +74,7 @@
74 74 <Compile Include="Properties\AssemblyInfo.cs" />
75 75 </ItemGroup>
76 76 <ItemGroup>
  77 + <Content Include="Content\Cint.css" />
77 78 <Content Include="Global.asax" />
78 79 <Content Include="Web.config" />
79 80 <Content Include="Web.Debug.config">
76 IT_Cint/Views/Home/Index.aspx
@@ -6,10 +6,74 @@
6 6
7 7 <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
8 8 <h2><%: ViewData["Message"] %></h2>
9   - <p>
10   - To learn more about ASP.NET MVC visit <a href="http://asp.net/mvc" title="ASP.NET MVC Website">http://asp.net/mvc</a>.
11   - </p>
12   - <p>
13   - To learn more about ASP.NET MVC visit <a href="http://asp.net/mvc" title="ASP.NET MVC Website">http://asp.net/mvc</a>.
14   - </p>
  9 +
  10 + <script type="text/javascript">
  11 + google.load("maps", "2.x");
  12 + </script>
  13 +
  14 + <script type="text/javascript" charset="utf-8">
  15 + $(document).ready(function () {
  16 + var map = new GMap2($("#map").get(0));
  17 + var loc = new GLatLng(60, 18);
  18 + map.setCenter(loc, 8);
  19 +
  20 + // setup 10 random points
  21 + var bounds = map.getBounds();
  22 + var southWest = bounds.getSouthWest();
  23 + var northEast = bounds.getNorthEast();
  24 + var lngSpan = northEast.lng() - southWest.lng();
  25 + var latSpan = northEast.lat() - southWest.lat();
  26 + var markers = [];
  27 + for (var i = 0; i < 10; i++) {
  28 + var point = new GLatLng(southWest.lat() + latSpan * Math.random(),
  29 + southWest.lng() + lngSpan * Math.random());
  30 + marker = new GMarker(point);
  31 + map.addOverlay(marker);
  32 + markers[i] = marker;
  33 + }
  34 +
  35 + $(markers).each(function (i, marker) {
  36 + $("<li />")
  37 + .html("Point " + i)
  38 + .click(function () {
  39 + displayPoint(marker, i);
  40 + })
  41 + .appendTo("#list");
  42 +
  43 + GEvent.addListener(marker, "click", function () {
  44 + displayPoint(marker, i);
  45 + });
  46 + });
  47 +
  48 + $("#message").appendTo(map.getPane(G_MAP_FLOAT_SHADOW_PANE));
  49 +
  50 + function displayPoint(marker, index) {
  51 + $("#message").hide();
  52 +
  53 + var moveEnd = GEvent.addListener(map, "moveend", function () {
  54 + var markerOffset = map.fromLatLngToDivPixel(marker.getLatLng());
  55 + $("#message")
  56 + .html("Lalalalal")
  57 + .fadeIn()
  58 + .css({ top: markerOffset.y, left: markerOffset.x });
  59 +
  60 + GEvent.removeListener(moveEnd);
  61 + });
  62 + map.panTo(marker.getLatLng());
  63 + }
  64 + });
  65 + </script>
  66 +
  67 + <!-- map here -->
  68 + <div id="map">
  69 +
  70 + </div>
  71 +
  72 + <ul id="list">
  73 + </ul>
  74 +
  75 + <div id="message" style="display:none;">
  76 +
  77 + </div>
15 78 </asp:Content>
  79 +
7 IT_Cint/Views/Shared/Site.Master
@@ -5,6 +5,12 @@
5 5 <head runat="server">
6 6 <title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title>
7 7 <link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
  8 + <link href="../../Content/Cint.css" rel="stylesheet" type="text/css" />
  9 +
  10 + <script src="../../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
  11 + <script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAAfmj0sLfgcw3sFZdOfSHs3BSSMm3EeG5adFJJuzrbdZsPkkdnARSyt6UWPgQf4AKikHmvXDg6Lj02eA"></script>
  12 +
  13 +
8 14 </head>
9 15
10 16 <body>
@@ -33,6 +39,7 @@
33 39 <asp:ContentPlaceHolder ID="MainContent" runat="server" />
34 40
35 41 <div id="footer">
  42 + Lalalalla - Google Map Spike
36 43 </div>
37 44 </div>
38 45 </div>
BIN  IT_Cint/bin/IT_Cint.dll
Binary file not shown
BIN  IT_Cint/bin/IT_Cint.pdb
Binary file not shown
BIN  IT_Cint/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown
5 IT_Cint/obj/Debug/IT_Cint.csproj.FileListAbsolute.txt
@@ -3,3 +3,8 @@ c:\users\irina\documents\visual studio 2010\Projects\IT_Cint\IT_Cint\bin\IT_Cint
3 3 c:\users\irina\documents\visual studio 2010\Projects\IT_Cint\IT_Cint\obj\Debug\ResolveAssemblyReference.cache
4 4 c:\users\irina\documents\visual studio 2010\Projects\IT_Cint\IT_Cint\obj\Debug\IT_Cint.dll
5 5 c:\users\irina\documents\visual studio 2010\Projects\IT_Cint\IT_Cint\obj\Debug\IT_Cint.pdb
  6 +C:\Users\Irina\Documents\Visual Studio 2010\Projects\IT_Cint\Cint-test\IT_Cint\bin\IT_Cint.dll
  7 +C:\Users\Irina\Documents\Visual Studio 2010\Projects\IT_Cint\Cint-test\IT_Cint\bin\IT_Cint.pdb
  8 +C:\Users\Irina\Documents\Visual Studio 2010\Projects\IT_Cint\Cint-test\IT_Cint\obj\Debug\ResolveAssemblyReference.cache
  9 +C:\Users\Irina\Documents\Visual Studio 2010\Projects\IT_Cint\Cint-test\IT_Cint\obj\Debug\IT_Cint.dll
  10 +C:\Users\Irina\Documents\Visual Studio 2010\Projects\IT_Cint\Cint-test\IT_Cint\obj\Debug\IT_Cint.pdb
BIN  IT_Cint/obj/Debug/IT_Cint.dll
Binary file not shown
BIN  IT_Cint/obj/Debug/IT_Cint.pdb
Binary file not shown

0 comments on commit 9286e6d

Please sign in to comment.
Something went wrong with that request. Please try again.