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 Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

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.

            
              <section class="section">
  <h1 class='title'> driver.jsのテスト</h1>
  <a class="button is-primary" id="btn1">サンプル1</a>
  <div class="field">
  <label class="label"></label>
    <div class="control">
      <input class="input" id="test1" type="text" placeholder="Text input">
    </div>
  </div>
  
  <a class="button is-link" id="btn2">サンプル2</a>
  <div class="field">
  <label class="label"></label>
    <div class="control">
      <input class="input" id="test2" type="text" placeholder="Text input">
    </div>
  </div>
  
   <a class="button is-info" id="btn3">サンプル3</a>
  <div class="field">
  <label class="label"></label>
    <div class="control">
      <input class="input" id="test3" type="text" placeholder="このインプットに入力するとフォーカスされます">
    </div>
  </div>
  
</section>
            
          
!
            
              var driver = new Driver();

// btn1 example
document.getElementById('btn1')
        .addEventListener('click', function(event) {
        event.stopPropagation();
  
        driver.highlight({
        element: '#test1',
        popover: {
          title: 'test',
          description: 'test',
          }
        });
  
});

// // focus sample
document.getElementById('test1')
        .addEventListener('focus', function(event) {
          event.stopPropagation();
          driverZero = new Driver({
            opacity: 0,
          });
  
          driverZero.highlight({
            element: '#test1',
            popover: {
              title: 'タイトル',
              description: 'ここに何かの説明など',
              position: 'top'
              }
            });
});

// btn2 example
document.getElementById('btn2')
        .addEventListener('click', function(event) {
          event.stopPropagation();
          driver.defineSteps([
          {
            element: '#test1',
            popover: {
              title: 'タイトル1',
              description: 'ここに何かの説明など',
              }
           },
            {
            element: '#test2',
            popover: {
              title: 'タイトル2',
              description: 'ここに何かの説明など',
              }
           },
            {
            element: '#test3',
            popover: {
              title: 'タイトル3',
              description: 'ここに何かの説明など',
              }
           }
           ]);

          driver.start();
  
});

document.getElementById('btn3')
        .addEventListener('click', function(event) {
          event.stopPropagation();
  
           driver.defineSteps([
          {
            element: '#test1',
            popover: {
              title: 'タイトル1 ',
              description: '* メニューを日本語化しています',
              doneBtnText: '完了',     
              closeBtnText: '閉じる',   
              nextBtnText: '進む',     
              prevBtnText: '戻る', 
              }
           },
            {
            element: '#test2',
            popover: {
              title: 'タイトル2',
              description: '* メニューを日本語化しています',
              doneBtnText: '完了',     
              closeBtnText: '閉じる',   
              nextBtnText: '進む',     
              prevBtnText: '戻る', 
              
              }
           },
            {
            element: '#test3',
            popover: {
              title: 'タイトル3',
              description: '* メニューを日本語化しています',
              doneBtnText: '完了',     
              closeBtnText: '閉じる',   
              nextBtnText: '進む',     
              prevBtnText: '戻る', 
              }
           }
           ]);

          driver.start();

  
});
            
          
!
999px
Loading ..................

Console