修改bootstrap和google map的样式冲突
This commit is contained in:
parent
af8fa13c61
commit
70a237d338
|
@ -3,27 +3,27 @@ $this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->data);
|
$this->headTitle($this->config->title->data);
|
||||||
$this->headTitle('时空导航');
|
$this->headTitle('时空导航');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/metadata.css');
|
//$this->headLink()->appendStylesheet('/css/metadata.css');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">首页</a>');
|
||||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||||
$this->breadcrumb('<a href="/data/timeline">时空导航</a>');
|
$this->breadcrumb('<a href="/data/timeline">时空导航</a>');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
//$this->headScript()->appendFile('http://maps.google.cN/maps?file=api&v=2&key='.$this->config->google->maps->api);
|
$this->theme->AppendPlus($this,'google_map_v3');
|
||||||
$this->headScript()->appendFile('http://maps.google.cN/maps/api/js?sensor=false');
|
$this->theme->AppendPlus($this,'colorbox');
|
||||||
$this->headScript()->appendFile('/js/timeline_var.js');
|
$this->headScript()->appendFile('/js/timeline_var.js');
|
||||||
$this->headScript()->appendFile('/js/timeline_js/timeline-api.js');
|
$this->headScript()->appendFile('/js/timeline_js/timeline-api.js');
|
||||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
|
||||||
$this->headScript()->appendFile('/js/timemap.2.0.1/lib/mxn/mxn.js?(googlev3)');
|
$this->headScript()->appendFile('/js/timemap.2.0.1/lib/mxn/mxn.js?(googlev3)');
|
||||||
$this->headScript()->appendFile('/js/timemap.2.0.1/timemap.pack.js');
|
$this->headScript()->appendFile('/js/timemap.2.0.1/timemap.pack.js');
|
||||||
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
|
||||||
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
|
||||||
?>
|
?>
|
||||||
|
<style>
|
||||||
|
img{max-width:none}
|
||||||
|
</style>
|
||||||
<div class="row-fluid"><?= $this->partial('data/tools.phtml'); ?></div>
|
<div class="row-fluid"><?= $this->partial('data/tools.phtml'); ?></div>
|
||||||
<div id="timemap">
|
<div id="timemap">
|
||||||
<div id="map" style="height:500px;width:50%;float:right;"></div>
|
<div id="timeline" style="height:500px;border-right:1px solid #abc;width:50%;float:left;"></div>
|
||||||
<div id="timeline" style="height:500px;border-right:1px solid #abc;"></div>
|
<div id="map" style="height:500px;"></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
$('#map').height($(window).height());
|
$('#map').height($(window).height());
|
||||||
$('#timeline').height($(window).height());
|
$('#timeline').height($(window).height());
|
||||||
|
@ -81,10 +81,9 @@ $(function() {
|
||||||
},
|
},
|
||||||
"title" : "<?php echo htmlspecialchars($row['title']); ?>",
|
"title" : "<?php echo htmlspecialchars($row['title']); ?>",
|
||||||
"options" : {
|
"options" : {
|
||||||
// set the full HTML for the info window
|
|
||||||
"infoHtml": "<div class='info'><a href=/heihe/view/uuid/<?php echo $row['uuid']; ?>><?php echo htmlspecialchars($row['title']); ?></a><hr /><img src=/service/thumb/id/<?php echo $row['id']; ?> onclick='$.colorbox({photo:\"true\",href:\"/service/bigthumb/id/<?php echo $row['id']; ?>\"});' /></div>",
|
"infoHtml": "<div class='info'><a href=/heihe/view/uuid/<?php echo $row['uuid']; ?>><?php echo htmlspecialchars($row['title']); ?></a><hr /><img src=/service/thumb/id/<?php echo $row['id']; ?> onclick='$.colorbox({photo:\"true\",href:\"/service/bigthumb/id/<?php echo $row['id']; ?>\"});' /></div>",
|
||||||
"theme":"orange"
|
"theme":"orange"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue