Commit d7f97cce authored by Julie Blanc's avatar Julie Blanc

onContent → create differents var

parent beaa5c8a
......@@ -43,13 +43,59 @@ class StringSets extends Handler {
funcNode.name = "var";
funcNode.children = new csstree.List();
funcNode.children.append(
funcNode.children.createItem({
type: "Identifier",
loc: null,
name: "--pagedjs-string-" + identifier
})
);
if(this.type === "first"){
console.log(this.type);
funcNode.children.append(
funcNode.children.createItem({
type: "Identifier",
loc: null,
name: "--pagedjs-string-first-" + identifier
})
);
}
if(this.type === "last"){
console.log(this.type);
funcNode.children.append(
funcNode.children.createItem({
type: "Identifier",
loc: null,
name: "--pagedjs-string-last-" + identifier
})
);
}
if(this.type === "start"){
console.log(this.type);
funcNode.children.append(
funcNode.children.createItem({
type: "Identifier",
loc: null,
name: "--pagedjs-string-start-" + identifier
})
);
}
if(this.type === "first-except"){
console.log(this.type);
funcNode.children.append(
funcNode.children.createItem({
type: "Identifier",
loc: null,
name: "--pagedjs-string-first-except" + identifier
})
);
}
// funcNode.children.append(
// funcNode.children.createItem({
// type: "Identifier",
// loc: null,
// name: "--pagedjs-string-" + identifier
// })
// );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment