Pages

Bootstrap popover stay on hover

Jadi ceritanya tadi nyari-nyari snippet buat nampilin content dari bootstrap popover dan tetep tampil apabila hover on contentnya juga, kira2 begini caranya :


        $('.pin').each(function() {
            $(this).popover({
                html: true,
                trigger: 'manual',
                placement: 'bottom',
                content: function() {
                    var data = $(this).attr('class');
                    var tooltip = data.split(" ");
                    var country = tooltip[2];
                    return $('dd.'+country).html();
                }
            }).hover(function() {
                if(isVisible & hoverAway) {
                    $('.popover').hide();
                    isVisible = false;
                    hoverAway = false;
                }
                $(this).popover('show');
                isVisible = true;
            },function() {
                hoverAway = true;
            });
        });


Intinya sih, tiap kali kita mouseover kasih flag kalo popup sudah tampil dan tiap kali mouseout kasih flag kalo kita sudah hover out dari content dan element html tempat kita hover, kemudian ketika hover di element lain, cek lagi apakah kedua flag tersebut aktif, bila iya maka sembunyikan semua popover yang aktif dan tampilkan popover yg sekarang... gak ngerti maksudnya? ya gpp, saya emang ga bakat bikin penjelasan tertulis... \(^0^)/

Iridescent

Iridescent By Linkin Park

When you were standing in the wake of devastation
When you were waiting on the edge of the unknown
With the cataclysm raining down
Your insides crying, "Save me now"
You were there, impossibly alone.

Do you feel cold and lost in desperation?
You build up hope, but failures all you've known.
Remember all the sadness and frustration
And let it go.
Let it go.

And in a burst of light that blinded every angel
As if the sky had blown the heavens into stars
You felt the gravity of tempered grace
Falling into empty space
With no one there to catch you in their arms.

Do you feel cold and lost in desperation?
You build up hope, but failures all you've known.
Remember all the sadness and frustration
And let it go.
Let it go.

(Instrumental Break)

Let it go.
Let it go.
Let it go.
Let it go.

Do you feel cold and lost in desperation?
You build up hope, but failures all you've known.
Remember all the sadness and frustration
Let it go.
Let it go.