cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

              <div class="container">

<!-- ボタンでポップオーバー -->
<button type="button" class="btn btn-default" data-toggle="popover" title="タイトル" data-content="コンテンツ">Click to toggle popover</button>
<!-- テキストでポップオーバー -->
<a href="#" data-toggle="popover" title="タイトル" data-content="コンテンツ">ポップオーバーを開く</a>
<!-- アイコンにポップオーバー -->
<span class="glyphicon glyphicon-question-sign" data-toggle="popover" title="タイトル" data-content="コンテンツ"></span>

<hr style="margin: 40px 0;">

<button type="button" id="popover-hint" class="btn btn-default" data-toggle="popover" data-content="ヒントの中身">ヒント</button>
<p><span class="tensuu">100</span>点</p>

<hr style="margin: 40px 0;">
              // ポップオーバーを機能させるには自分でjavascript書く必要あり
$(function () {

// ポップオーバーが表示されたら発動
$('#popover-hint').on('shown.bs.popover', function () {
  // ポップオーバー(ヒント)が表示されたら点数が減る
  var currentPoint = $('.tensuu').text();
  var newPoint = currentPoint - 10;
Loading ..................