S
S
Sergey Bocharov2016-06-15 00:50:08
css
Sergey Bocharov, 2016-06-15 00:50:08

What report builder for a web project on postgresql + python would you recommend?

The project needs to create reports from the database using simple arithms. actions. Please advise wizard to create online

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikolai Shabalin, 2015-10-28
@developerrr

html

<a class="on" href="javascript:;">Включить</a>
 <a class="off" href="javascript:;">Выключить</a>
 
 <div class="text">
  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consequatur, molestiae!
 </div>

SASS
.text {
  display: none;
}

.on {
  &.is-active {
    color: green;
  }
}

.off {
  &.is-active {
    color: grey;
  }
}

jQuery
$on = $('.on');
$off = $('.off');
$text = $('.text');
active = 'is-active';

$on.click(function() {
  $text.fadeIn(300);
  $on.addClass(active);
  $off.removeClass(active);
})

$off.click(function() {
  $text.fadeOut(300);
  $on.removeClass(active);
  $off.addClass(active);
})

Play around here.

V
Vladislav Kopylov, 2015-10-28
@kopylov_vlad

on jquery on click() event call toggle()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question