Home
last modified time | relevance | path

Searched refs:element (Results 1 – 25 of 324) sorted by relevance

12345678910>>...13

/webtrees/resources/js/
H A Dwebtrees.js150 webtrees.pasteAtCursor = function (element, text) { argument
151 if (element !== null) {
152 const caret_pos = element.selectionStart + text.length;
153 const textBefore = element.value.substring(0, element.selectionStart);
154 const textAfter = element.value.substring(element.selectionEnd);
155 element.value = textBefore + text + textAfter;
156 element.setSelectionRange(caret_pos, caret_pos);
157 element.focus();
556 webtrees.persistentToggle = function (element) { argument
557 const key = 'state-of-' + element.dataset.wtPersist;
[all …]
/webtrees/public/ckeditor-4.15.1-custom/
H A Dstyles.js36 { name: 'Italic Title', element: 'h2', styles: { 'font-style': 'italic' } }, property
37 { name: 'Subtitle', element: 'h3', styles: { 'color': '#aaa', 'font-style': 'italic' } }, property
40 element: 'div', property
62 { name: 'Marker', element: 'span', attributes: { 'class': 'marker' } }, property
64 { name: 'Big', element: 'big' }, property
65 { name: 'Small', element: 'small' }, property
66 { name: 'Typewriter', element: 'tt' }, property
68 { name: 'Computer Code', element: 'code' }, property
69 { name: 'Keyboard Phrase', element: 'kbd' }, property
70 { name: 'Sample Text', element: 'samp' }, property
[all …]
H A Dckeditor.js33 …"}}(),convertToPx:function(){var a;return function(b){a||(a=CKEDITOR.dom.element.createFromHtml('\…
36 …i.test(a)},parseCssText:function(a,b,c){var e={};c&&(a=(new CKEDITOR.dom.element("span")).setAttri…
94 …,getFrame:function(){var a=this.$.frameElement;return a?new CKEDITOR.dom.element.get(a):null}});CK…
95element("link");d.setAttributes({rel:"stylesheet",type:"text/css",href:a});this.getHead().append(d…
96element(a,this);d&&(d.attributes&&b.setAttributes(d.attributes),d.styles&&b.setStyles(d.styles));r…
98element(a):this.getDocumentElement().append(new CKEDITOR.dom.element("head"),!0)},getBody:function…
99 …},findOne:function(a){return(a=this.$.querySelector(a))?new CKEDITOR.dom.element(a):null},_getHtml…
100 ….map(this.$,function(a){return new CKEDITOR.dom.node(a)})}};CKEDITOR.dom.element=function(a,d){"st…
101element.get=function(a){return(a="string"==typeof a?document.getElementById(a)||document.getElemen…
102element.setMarker=function(a,d,b,c){var f=d.getCustomData("list_marker_id")||d.setCustomData("list…
[all …]
/webtrees/app/Report/
H A DReportHtmlTextbox.php51 $element = $this->elements[$i];
52 if ($element instanceof ReportBaseElement) {
53 if ($element instanceof ReportBaseText) {
62 $lastelement = $element;
63 } elseif ($element->getStyleName() === $lastelement->getStyleName()) {
65 $lastelement->addText(str_replace("\n", '<br>', $element->getValue()));
68 $lastelement = $element;
70 } elseif ($element instanceof ReportHtmlFootnote) {
72 $renderer->checkFootnote($element);
79 $footnote_element[$element->num] = $element;
[all …]
H A DPdfRenderer.php77 foreach ($this->headerElements as $element) {
78 if ($element instanceof ReportBaseElement) {
79 $element->render($this);
80 } elseif ($element === 'footnotetexts') {
82 } elseif ($element === 'addpage') {
97 foreach ($this->bodyElements as $element) {
98 if ($element instanceof ReportBaseElement) {
99 $element->render($this);
100 } elseif ($element === 'footnotetexts') {
102 } elseif ($element === 'addpage') {
[all …]
H A DReportPdfTextBox.php52 $element = $this->elements[$i];
53 if ($element instanceof ReportBaseElement) {
54 if ($element instanceof ReportBaseText) {
61 $lastelement = $element;
62 } elseif ($element->getStyleName() === $lastelement->getStyleName()) {
64 $lastelement->addText(str_replace("\n", '<br>', $element->getValue()));
67 $lastelement = $element;
69 } elseif ($element instanceof ReportPdfFootnote) {
71 $renderer->checkFootnote($element);
78 $footnote_element[$element->num] = $element;
[all …]
H A DHtmlRenderer.php114 …$element = new ReportHtmlCell(0.0, 10.0, '', 'C', '', 'genby', 1, ReportBaseElement::CURRENT_POSIT…
115 $element->addText($this->generated_by);
116 $element->setUrl(Webtrees::URL);
117 $this->footerElements[] = $element;
130 foreach ($this->printedfootnotes as $element) {
131 $element->renderFootnote($this);
173 foreach ($this->headerElements as $element) {
174 if ($element instanceof ReportBaseElement) {
175 $element->render($this);
176 } elseif ($element === 'footnotetexts') {
[all …]
H A DAbstractRenderer.php127 * @param ReportBaseElement|string $element
131 public function addElement($element): void argument
134 $this->addElementToBody($element);
136 $this->addElementToHeader($element);
138 $this->addElementToFooter($element);
143 * @param ReportBaseElement|string $element
147 public function addElementToHeader($element): void argument
149 $this->headerElements[] = $element;
153 * @param ReportBaseElement|string $element
157 public function addElementToBody($element): void argument
[all …]
/webtrees/tests/app/Elements/
H A DAbstractElementTestCase.php31 protected static ElementInterface $element; variable in Fisharebest\\Webtrees\\Elements\\AbstractElementTestCase
35 self::assertSame('Foo bAr baZ', self::$element->canonical('Foo bAr baZ'));
36 self::assertSame('Foo bAr baZ', self::$element->canonical("\t Foo\t bAr \tbaZ\t "));
37 self::assertSame('Foo bAr baZ', self::$element->canonical("\nFoo \n\r bAr \r\n baZ\r"));
42 if (static::$element instanceof AbstractXrefElement) {
43 self::assertSame('@X123@', static::$element->escape('@X123@'));
45 self::assertSame('@@X123@@', static::$element->escape('@X123@'));
52 $html = static::$element->value(self::EVIL_VALUE, $tree);
61 $html = static::$element->labelValue(self::EVIL_VALUE, $tree);
70 $html = static::$element->edit('id', 'name', self::EVIL_VALUE, $tree);
[all …]
H A DAgeAtEventTest.php36 self::$element = new AgeAtEvent('label');
41 self::assertSame('CHILD', self::$element->canonical('cHiLd'));
42 self::assertSame('INFANT', self::$element->canonical('iNfAnT '));
43 self::assertSame('STILLBORN', self::$element->canonical(' sTiLlBoRn'));
44 self::assertSame('fish', self::$element->canonical('fIsH'));
45 self::assertSame('1y 2m 3d', self::$element->canonical('1Y 2M 3D'));
52 self::assertSame('child', self::$element->value('cHiLd', $tree));
53 self::assertSame('infant', self::$element->value('iNfAnT ', $tree));
54 self::assertSame('stillborn', self::$element->value(' sTiLlBoRn', $tree));
55 self::assertSame('fish', self::$element->value('fIsH', $tree));
[all …]
H A DMultimediaFormatTest.php35 self::$element = new MultimediaFormat('label');
40 self::assertSame('JPG', self::$element->canonical('jpg'));
41 self::assertSame('JPG', self::$element->canonical('jpeg'));
42 self::assertSame('JPG', self::$element->canonical('JPG'));
43 self::assertSame('JPG', self::$element->canonical('JPEG'));
44 self::assertSame('TIF', self::$element->canonical('tif'));
45 self::assertSame('TIF', self::$element->canonical('tiff'));
46 self::assertSame('TIF', self::$element->canonical('TIF'));
47 self::assertSame('TIF', self::$element->canonical('TIFF'));
48 self::assertSame('PDF', self::$element->canonical('pdf'));
H A DMaidenheadLocatorTest.php35 self::$element = new MaidenheadLocator('label');
40 self::assertSame('AB', self::$element->canonical('ab'));
41 self::assertSame('AB', self::$element->canonical('AB'));
42 self::assertSame('AB12', self::$element->canonical('ab12'));
43 self::assertSame('AB12', self::$element->canonical('AB12'));
44 self::assertSame('AB12cd', self::$element->canonical('ab12cd'));
45 self::assertSame('AB12cd', self::$element->canonical('AB12CD'));
46 self::assertSame('AB12cd34', self::$element->canonical('ab12cd34'));
47 self::assertSame('AB12cd34', self::$element->canonical('AB12CD34'));
H A DRestrictionNoticeTest.php35 self::$element = new RestrictionNotice('label');
40 self::assertSame('PRIVACY', self::$element->canonical('pRiVacy'));
41 self::assertSame('NONE', self::$element->canonical('NONE'));
42 self::assertSame('CONFIDENTIAL', self::$element->canonical('Confidential'));
43 self::assertSame('LOCKED', self::$element->canonical(', locked ,'));
44 self::assertSame('CONFIDENTIAL, LOCKED', self::$element->canonical('locked confidential'));
45 self::assertSame('PRIVACY, LOCKED', self::$element->canonical('locked, privacy'));
46 self::assertSame('NONE, LOCKED', self::$element->canonical('locked,, none'));
H A DXrefSourceTest.php40 $element = new XrefSource('');
56 $html = $element->edit('some-id', 'some-name', '@X123@', $tree);
69 $element = new XrefSource('');
77 $html = $element->edit('some-id', 'some-name', 'An inline source', $tree);
87 $element = new XrefSource('');
89 self::assertSame('@X123@', $element->escape('@X123@'));
94 $element = new XrefSource('');
H A DLanguageIdTest.php35 static::$element = new LanguageId('label');
40 self::assertSame('ENGLISH', self::$element->canonical("\t English\t "));
41 self::assertSame('KLINGON', self::$element->canonical('kLiNgOn'));
42 self::assertSame('ANGLO-SAXON', self::$element->canonical('anglo-saxon'));
43 self::assertSame('CATALAN_SPN', self::$element->canonical('CATALAN_SPN'));
H A DRoleInEventTest.php35 self::$element = new RoleInEvent('label');
40 self::assertSame('CHIL', self::$element->canonical('cHiL'));
41 self::assertSame('(Foo bAr baZ)', self::$element->canonical('Foo bAr baZ'));
42 self::assertSame('(Foo bAr baZ)', self::$element->canonical("\t Foo\t bAr \tbaZ\t "));
43 self::assertSame('(Foo bAr baZ)', self::$element->canonical("\nFoo \n\r bAr \r\n baZ\r"));
H A DPlaceHierarchyTest.php35 self::$element = new PlaceHierarchy('label');
40 self::assertSame('Foo, bAr, baZ', self::$element->canonical('Foo bAr baZ'));
41 self::assertSame('Foo, bAr, baZ', self::$element->canonical("\t Foo\t bAr \tbaZ\t "));
42 self::assertSame('Foo, bAr, baZ', self::$element->canonical("\nFoo \n\r bAr \r\n baZ\r"));
43 self::assertSame('Foo, Bar, Baz', self::$element->canonical(',,Foo,Bar , , Baz, '));
H A DXrefNoteTest.php37 $element = new XrefNote('');
49 $html = $element->edit('some-id', 'some-name', '@X123@', $tree);
61 $element = new XrefNote('');
63 self::assertSame('@X123@', $element->escape('@X123@'));
68 $element = new XrefNote('');
H A DXrefSharedNoteTest.php37 $element = new XrefSharedNote('');
49 $html = $element->edit('some-id', 'some-name', '@X123@', $tree);
61 $element = new XrefSharedNote('');
63 self::assertSame('@X123@', $element->escape('@X123@'));
68 $element = new XrefSharedNote('');
/webtrees/public/ckeditor-4.15.1-custom/plugins/forms/dialogs/
H A Dtextfield.js5 CKEDITOR.dialog.add("textfield",function(b){function e(a){a=a.element;var b=this.getValue();b?a.set…
6 …ute("type","text"));b={element:b};c&&a.insertElement(b.element);this.commitContent(b);c||a.getSele… property
7 …a("cke-saved-name")||a.getAttribute("name")||"")},commit:function(a){a=a.element;this.getValue()?a…
8 …is.getValue()){var d=a.element,c=new CKEDITOR.dom.element("input",b.document);d.copyAttributes(c,{…
10element;if(CKEDITOR.env.ie){var c=d.getAttribute("type"),e=this.getValue();c!=e&&(c=CKEDITOR.dom.e…
11 …up:CKEDITOR.plugins.forms._setupRequiredAttribute,commit:function(a){a=a.element;this.getValue()?a…
H A Dcheckbox.js5 …nt("input"),b.setAttribute("type","checkbox"),a.insertElement(b));this.commitContent({element:b})}, property
6 …a("cke-saved-name")||a.getAttribute("name")||"")},commit:function(a){a=a.element;this.getValue()?a…
7element,c=this.getValue();!c||CKEDITOR.env.ie&&"on"==c?CKEDITOR.env.ie?(c=new CKEDITOR.dom.element
8element;if(CKEDITOR.env.ie){var c=!!b.getAttribute("checked"),e=!!this.getValue();c!=e&&(c=CKEDITO…
9 …up:CKEDITOR.plugins.forms._setupRequiredAttribute,commit:function(a){a=a.element;this.getValue()?a…
H A Dradio.js5 …ement("input"),b.setAttribute("type","radio"),a.insertElement(b));this.commitContent({element:b})}, property
6 …a("cke-saved-name")||a.getAttribute("name")||"")},commit:function(a){a=a.element;this.getValue()?a…
7element;this.getValue()?a.setAttribute("value",this.getValue()):a.removeAttribute("value")}},{id:"…
8 …&d.setAttribute("checked","checked"),c.getSelection().selectElement(d),a.element=d)}else a=this.ge…
9 commit:function(a){a=a.element;this.getValue()?a.setAttribute("required","required"):a.removeAttrib…
/webtrees/app/Http/RequestHandlers/
H A DCheckTree.php206 $element = $element_factory->make($full_tag);
210 $element = new SubmitterText('CONT');
213 if ($element instanceof UnknownElement) {
221 } elseif ($element instanceof AbstractXrefElement) {
230 … } elseif ($element instanceof XrefFamily && $linked->type !== Family::RECORD_TYPE) {
233 … } elseif ($element instanceof XrefIndividual && $linked->type !== Individual::RECORD_TYPE) {
236 … } elseif ($element instanceof XrefMedia && $linked->type !== Media::RECORD_TYPE) {
239 … } elseif ($element instanceof XrefNote && $linked->type !== Note::RECORD_TYPE) {
242 … } elseif ($element instanceof XrefSource && $linked->type !== Source::RECORD_TYPE) {
245 … } elseif ($element instanceof XrefRepository && $linked->type !== Repository::RECORD_TYPE) {
[all …]
H A DTreePreferencesPage.php144 … ->filter(static fn (ElementInterface $element): bool => !$element instanceof UnknownElement)
145 ->map(static fn (ElementInterface $element): string => $element->label())
152 … ->filter(static fn (ElementInterface $element): bool => !$element instanceof UnknownElement)
153 ->map(static fn (ElementInterface $element): string => $element->label())
/webtrees/public/ckeditor-4.15.1-custom/plugins/div/dialogs/
H A Ddiv.js1 (function(){function t(a,m,r){m.is&&m.getCustomData("block_processed")||(m.is&&CKEDITOR.dom.element
3 …le"],c=this.getDialog(),f=c.getModel(a),f=f&&f.clone()||new CKEDITOR.dom.element("div",a.document)…
6 …et(function(f){var b,k;if(f)for(var e=0;e<f.length;e++)k=f[e],k.element&&"div"==k.element&&(b=k.na…
7 ….getName()]&&!b.equals(e[h].root);)b=b.getParent();t(f,b,c)}CKEDITOR.dom.element.clearAllMarkers(c…
8 …++)f=f.getCommonAncestor(e[h][b]);f||(f=a.editable());l=new CKEDITOR.dom.element("div",a.document)…
9 (d.is&&CKEDITOR.dom.element.setMarker(c,d,"block_processed",!0),b||l.insertBefore(d),l.append(d));C…

12345678910>>...13