2013-01-11 18:49:59 -05:00
|
|
|
<%#
|
|
|
|
# @file
|
|
|
|
# Located at /
|
|
|
|
# Shows 3 most recently created topics, synapses, and maps.
|
2014-08-10 13:06:58 -04:00
|
|
|
#%>
|
2013-07-09 12:32:13 -04:00
|
|
|
|
2014-08-01 22:50:23 -04:00
|
|
|
<% if !authenticated? %>
|
2014-08-10 13:06:58 -04:00
|
|
|
|
|
|
|
<% content_for :title, "Home | Metamaps" %>
|
|
|
|
|
2014-02-24 11:35:48 -08:00
|
|
|
<div id="preloaded-images">
|
|
|
|
<img src="/assets/metacodes75ms300x300.gif" width="128 height="128" alt="Image 01" />
|
|
|
|
</div>
|
|
|
|
|
2013-02-03 19:13:21 -05:00
|
|
|
<div class="home_bg">
|
2013-01-07 23:03:41 -05:00
|
|
|
|
2013-02-03 19:13:21 -05:00
|
|
|
<div class="home_content">
|
|
|
|
<div class="home_desc">
|
2014-03-03 00:25:47 -08:00
|
|
|
<div class="welcomeTo">
|
|
|
|
Welcome to Metamaps
|
2014-02-23 23:22:40 -08:00
|
|
|
</div>
|
2014-03-03 00:25:47 -08:00
|
|
|
<img id="homeMapImage" src="/assets/metamap128x128.png" width="128" height="128" />
|
|
|
|
|
|
|
|
<div class="metamapsIs">
|
|
|
|
a home on the web for <span class="swapWord">
|
|
|
|
<ul class="texts">
|
|
|
|
<li>building shared knowledge</li>
|
|
|
|
<li>learning</li>
|
|
|
|
<li>visioning</li>
|
|
|
|
<li>conversing</li>
|
|
|
|
<li>collaborating</li>
|
|
|
|
<li>sensemaking</li>
|
|
|
|
<li>innovating</li>
|
|
|
|
<li>designing</li>
|
|
|
|
<li>playing</li>
|
|
|
|
<li>exploring</li>
|
|
|
|
</ul>
|
|
|
|
</span>
|
|
|
|
</div>
|
2013-01-07 23:03:41 -05:00
|
|
|
</div>
|
|
|
|
<div class="clearfloat"></div>
|
2013-07-11 11:13:27 -04:00
|
|
|
|
2014-02-10 01:29:02 -05:00
|
|
|
<p class="contact">
|
2014-08-10 13:06:58 -04:00
|
|
|
<a href="/request" class="request button" data-bypass="true">Request Invite</a>
|
|
|
|
<a href="/explore/featured" class="learnmore button">Explore Featured</a>
|
2014-03-03 00:25:47 -08:00
|
|
|
<div class="featuredMaps">
|
|
|
|
explore featured maps from our community
|
|
|
|
</div>
|
2014-02-10 01:29:02 -05:00
|
|
|
</p>
|
|
|
|
|
2013-01-07 23:03:41 -05:00
|
|
|
<div class="centeredProfile">
|
2014-02-10 01:29:02 -05:00
|
|
|
<div id="homeMap">
|
2014-02-23 23:22:40 -08:00
|
|
|
<figure id="homeFigure">
|
|
|
|
<% @maps.each_with_index do |map, index| %>
|
|
|
|
<% first = index == 0 ? true : false %>
|
2014-07-30 01:02:47 -04:00
|
|
|
<%= render :partial => 'main/homemap', :locals => { :map => map, :first => first } %>
|
2014-02-10 01:29:02 -05:00
|
|
|
<% end %>
|
2014-02-23 23:22:40 -08:00
|
|
|
</figure>
|
2014-02-10 01:29:02 -05:00
|
|
|
</div>
|
2013-01-07 23:03:41 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-02-03 19:13:21 -05:00
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div>
|
2014-08-01 22:50:23 -04:00
|
|
|
|
2014-02-23 23:22:40 -08:00
|
|
|
<script>
|
|
|
|
|
2014-08-10 13:06:58 -04:00
|
|
|
Metamaps.currentSection = "";
|
|
|
|
Metamaps.currentPage = "";
|
|
|
|
|
2014-02-23 23:22:40 -08:00
|
|
|
$(document).ready(function() {
|
|
|
|
// flip through these words on the homepage
|
|
|
|
$('.swapWord').textillate({
|
|
|
|
in: { effect: 'fadeIn', delay: 20 },
|
|
|
|
out: { effect: 'fadeOut', sync: true },
|
|
|
|
loop: true,
|
|
|
|
minDisplayTime: 2000
|
|
|
|
});
|
|
|
|
|
2014-02-24 11:35:48 -08:00
|
|
|
$('#homeMapImage').hover(function() {
|
|
|
|
$(this).attr('src','/assets/metacodes75ms300x300.gif');
|
|
|
|
}, function() {
|
|
|
|
$(this).attr('src','/assets/metamap128x128.png');
|
|
|
|
});
|
2014-06-11 10:25:33 -04:00
|
|
|
|
2014-06-11 22:38:48 -04:00
|
|
|
$('#homeMap .desc').each(function() {
|
|
|
|
$(this).height($(this).height()).mCustomScrollbar({
|
|
|
|
mouseWheelPixels: 200
|
|
|
|
});
|
2014-06-11 10:25:33 -04:00
|
|
|
});
|
2014-02-24 11:35:48 -08:00
|
|
|
|
2014-02-23 23:22:40 -08:00
|
|
|
});
|
2014-08-01 22:50:23 -04:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<% elsif authenticated? %>
|
2014-08-10 13:06:58 -04:00
|
|
|
<% content_for :title, "My Maps | Metamaps" %>
|
2014-08-01 22:50:23 -04:00
|
|
|
|
2014-08-10 13:06:58 -04:00
|
|
|
<script>
|
|
|
|
Metamaps.Maps.Mine = <%= @maps.to_json.html_safe %>;
|
|
|
|
Metamaps.currentSection = "";
|
|
|
|
Metamaps.currentPage = "";
|
|
|
|
Metamaps.GlobalUI.Search.isOpen = true;
|
|
|
|
Metamaps.GlobalUI.Search.lock();
|
|
|
|
</script>
|
|
|
|
<% end %>
|