File tree 2 files changed +8
-46
lines changed
2 files changed +8
-46
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -11,21 +11,23 @@ export default {
11
11
"*"
12
12
] ,
13
13
14
- getData : function ( urlMatch , options , cb ) {
14
+ getLink : function ( urlMatch ) {
15
15
/** https://wiki.geogebra.org/en/Embedding_in_Webpages */
16
16
17
17
if ( ! / ^ \d + $ / . test ( urlMatch [ 1 ] ) ) {
18
- cb ( null , { __promoUri : { url : 'https://www.geogebra.org/material/iframe/id/' + urlMatch [ 1 ] } } ) ;
19
- } else {
20
- cb ( null , null )
18
+ return {
19
+ href : 'https://www.geogebra.org/material/iframe/id/' + urlMatch [ 1 ] ,
20
+ accept : CONFIG . T . text_html ,
21
+ rel : [ CONFIG . R . app , CONFIG . R . iframely ] ,
22
+ 'aspect-ratio' : 800 / 600
23
+ }
21
24
}
22
25
} ,
23
26
24
27
tests : [
25
28
{ noFeeds : true } ,
26
29
{ skipMethods : [ 'getData' ] } ,
27
- "http://www.geogebra.org/m/141300" ,
28
- "https://www.geogebra.org/m/wn2U6Hj6#material/ysf5TjUB" ,
30
+ "https://www.geogebra.org/m/141300" ,
29
31
"https://www.geogebra.org/classic/hs52mgmq" ,
30
32
"https://www.geogebra.org/graphing/pse7krdf"
31
33
]
You can’t perform that action at this time.
0 commit comments