DKIM signatures exceeds the maximum string length allowed in DNS (254 chars)


(Stéphane de Labrusse) #21

hi davidep

I have something that break the accordion widget, it works outside of nethgui, see, but the same code in the template is not workable. Could you have some clues…

Not really my field of competencies, but interesting

this is the code

<!doctype html>
<html lang="en">
  <meta charset="utf-8">
  <title>accordion demo</title>
  <link rel="stylesheet" href="//">
  <script src="//"></script>
  <script src="//"></script>
<div id="accordion">
  <h3><a href="#">Section 1</a></h3>
<p>Mauris mauris ante, blandit et, ultrices a, suscipit eget.
Integer ut neque. Vivamus nisi metus, molestie vel, gravida in,
condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros.
Nam mi. Proin viverra leo ut odio.</p>
  <h3><a href="#">Section 2</a></h3>
<p>Sed non urna. Phasellus eu ligula. Vestibulum sit amet purus.
Vivamus hendrerit, dolor aliquet laoreet, mauris turpis velit,
faucibus interdum tellus libero ac justo.</p>
  <h3><a href="#">Section 3</a></h3>
<p>Nam enim risus, molestie et, porta ac, aliquam ac, risus.
Quisque lobortis.Phasellus pellentesque purus in massa.</p>
  <li>List item one</li>
  <li>List item two</li>
  <li>List item three</li>
$( "#accordion" ).accordion();

(Davide Principi) #22

The jQueryUI manual says

The markup of your accordion container needs pairs of headers and content panels

In other words H3 and DIV tags. From their example H3 contains an A tag. The whole structure is wrapped by a DIV with an unique ID. In Nethgui just add the PHP call that inserts the Javascript code:

(function ( $ ) {
    $( '#youAccordionId' ).accordion();
} ( jQuery ));

Let me try it, I’ll send you a PR if I can succeed.

(Stéphane de Labrusse) #23

Yes i tried this also without success :wink:

(Davide Principi) #24

Here’s a preview with Accordion. It has been quite difficult to make it work :sweat_smile:

When the label “Paste the full TXT record…” is clicked, the panel above is folded, and another one appears:

Other procedures are welcome too :wink:

(Stéphane de Labrusse) #25

thank @davidep you saved much of my nights :smiley:

(Stéphane de Labrusse) #26

released as an update