Commit 9f28f15e75b10503e30d63ea6ed1fb3b84086208

Authored by steve ago
1 parent 30c739da2c
Exists in master

fixing button click action

Showing 2 changed files with 10 additions and 2 deletions Side-by-side Diff

project/project/templates/fb.html View file @ 9f28f15
... ... @@ -7,6 +7,8 @@
7 7 <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/trends.css') }}">
8 8 <script>
9 9 $(document).ready(function(){
  10 + $(il_main).removeClass("active")
  11 + $(il_facebook).addClass("active")
10 12 $('#myTable').DataTable({
11 13 "iDisplayLength": 100
12 14 });
... ... @@ -14,8 +16,8 @@
14 16 </script>
15 17 <div class="container">
16 18 <div class="week_type">
17   - <a class="btn btn-default" href="{{ url_for('fb',v_type=v_type,w_type='today') }}">금일 TOP10</a>
18   - <a class="btn btn-primary" href="{{ url_for('fb',v_type=v_type,w_type='realtime') }}">실시간 급상승</a>
  19 + <a {% if w_type == 'realtime' %}class="btn btn-default"{% else %}class="btn btn-primary"{% endif %} href="{{ url_for('fb',v_type=v_type,w_type='today') }}">금일 TOP10</a>
  20 + <a {% if w_type == 'realtime' %}class="btn btn-primary"{% else %}class="btn btn-default"{% endif %} href="{{ url_for('fb',v_type=v_type,w_type='realtime') }}">실시간 급상승</a>
19 21 </div>
20 22 <ul class="nav nav-tabs nav-justified">
21 23 <li role="presentation" {% if v_type == 'share' %}class="active"{% endif %}>
project/project/templates/trends.html View file @ 9f28f15
1 1 {% extends "header.html" %}
2 2 {% block datadetails %}
  3 +<script>
  4 +$(document).ready(function(){
  5 + $(il_main).addClass("active")
  6 + $(il_facebook).removeClass("active")
  7 +});
  8 +</script>
3 9  
4 10 <!DOCTYPE html>
5 11 <html lang="en">