Post by Boy_Wonder on Jun 20, 2016 12:24:58 GMT -8
Okay NOT a plugin - using it on a custom page as a full script.
Something in this is causing a JS error :
JS Error: SyntaxError: Unexpected identifier
On the custom page. When I go to inspect element on the page however its throwing the same syntax error... without linking to the right place, so can anyone find anything?
<div id="charPrompt"></div>
<script type="text/javascript">
<!--
var descPrompts = ["This foul-mouthed woman has deep-set green eyes. Her thick, straight, shoulder-length hair is the color of ivory, and is worn in a severe style. She has a narrow build. Her skin is light-colored. She has a wide chin and stubby-fingered hands. Her wardrobe is tight and uncomplicated, with a lot of red.",
"This placid girl has large eyes the color of milk chocolate. Her fine, curly, white hair is worn in a style that reminds you of a pair of wings. She has a wasp-waisted build. Her skin is deeply-tanned. She has a high forehead. Her wardrobe is unconventional and attractive, with a completely purple color scheme",
"This enthusiastic gentleman has beady slate-gray eyes. His fine, curly, midnight black hair is worn in a style that reminds you of a puffy dandelion. He is very tall and has a narrow build. His skin is white. He has high cheekbones and long-fingered hands. His wardrobe is plain.",
"This man makes you think of a sneaky serpent. He has hooded brown eyes that are like two discs of wood. His silky, straight, yellow hair is worn in a style that reminds you of a strange headdress. He's got a thin moustache. He is very tall and has an angular build. His skin is light-colored. He has small feet. His wardrobe is elegant, and is mostly blue and green.",
"This mysterious woman has beady teal eyes. Her thick, straight, shoulder-length hair is the color of chestnuts, and is worn in a dignified style. She has an hourglass build. Her skin is tanned. She has thin lips. Her wardrobe is weird, with a lot of yellow.",
"This romantic guy has round brown eyes. His fine, straight, brown hair is worn in a style that reminds you of a plume of smoke. He's got a moustache. He is tall and has a masculine build. His skin is light-colored. He has a wide forehead and a pointed chin. His wardrobe is dignified.",
"This playful girl has wide brown eyes that are like two drops of chocolate. Her silky, straight, rose-red hair is worn in a style that reminds you of a fluttering flag. She is very tall and has a voluptuous build. Her skin is china-white. She has thin eyebrows and small feet. Her wardrobe is revealing for the time, and is completely brown.",
"This antisocial woman has almond-shaped gray eyes that are like two windows looking out on an overcast sky. Her fine, curly, chestnut hair is neck-length and is worn in a precise style. She has a slender build. Her skin is light-colored. She has hollow cheeks. Her wardrobe is weird, with a lot of white",
"This girl puts you in mind of an elegant dragonfly. She has slitted eyes the color of blue tropical waters. Her silky, straight, charcoal-colored hair is worn in a style that reminds you of a crown. She has a thin build. Her skin is pale. She has prominent cheekbones. Her wardrobe is attractive, with a lot of red."];
var charPrompts = ['The well-meaning and polite regular guy who has to be better than anyone else and who hasn't decided on a life path.',
'The gung-ho military officer who is seeking True Love and who tries to live up to their earlier success.',
'The eccentric visionary reviled by his peers who gives all they have to save the world.',
'The wanderer with a unique gift who is accused of a crime they did not commit.',
'The stealthy assassin who gives all they have to save the world.',
'The upper-class fop who is a gossip and who is actually completely insane.',
'The scoundrel with a heart of gold who is on the run from the law.',
'The upper-class fop who is entangled in a conspiracy without their knowledge.',
'The energetic young boy who never loses important virtues or values and who works as an assasin against the forces of darkness.',
'The dilligent craftsman whose scientific endeavors have given them a god complex.',
'The crotchety older man who doesn't understand the younger generation and who's true love is their ship.',
'The genial and hearty barkeep who is dangerously mis-informed.',
'The adventurous captain who seeks their own destruction and who is ready to reform.',
'The adventurous captain who is a softy at heart despite strong biases.'];
var quickNDirty = [
'The gentle bounty hunter with no hope.',
'The heroic thief.',
'The moralistic thief.',
'The awkward outlaw escpaing the past.',
'The lonely mercenary.',
'The pompous explorer.',
'The merchant with unusual luck.',
'The sickly, unhappy, cooperative laborer from a good family.',
'The smuggler who can't resist a fight.',
'The athletic assistant.',
'The loudmouthed boatman.',
'The actor who hates animals.',
'The young, incoherent, short-tempered servant.',
'The bloodthirsty bounty hunter.',
'The stingy explorer looking for love.',
'The ambassador who fell in with the wrong crowd.',
'The hypocritical, striking fence on the wrong side of the law.',
'The lawman coping with mental illness.',
'The spendthrift trader.',
'The conformist prospector.',
'The hunter who lost meaning in life.',
'The watchful hunter.',
'The generous priest who is given to moments of deep introspection.',
'The confident trader who loves animals.',
'The plain laborer.',
'The aged, dissatisfied, rude soldier.',
'The just, boring miner.',
'The dexterous, heroic bounty hunter who loves children.'];
var desc = descPrompts[Math.floor(Math.random() * descPrompts.length)];
var char = charPrompts[Math.floor(Math.random() * charPrompts.length)];
var quickDirt = quickNDirty[Math.floor(Math.random() * quicknDirty.length)];
$( "#charPrompt" ).append( '<p class="subtitle is-5">Description Prompts</p>' );
$( "#charPrompt" ).append( desc );
$( "#charPrompt" ).append( '<p class="subtitle is-5">Character Prompts</p>' );
$( "#charPrompt" ).append( char );
$( "#charPrompt" ).append( '<p class="subtitle is-5">Quick n Dirty</p>' );
$( "#charPrompt" ).append( quickDirt );
-->
</script>
Something in this is causing a JS error :
JS Error: SyntaxError: Unexpected identifier
On the custom page. When I go to inspect element on the page however its throwing the same syntax error... without linking to the right place, so can anyone find anything?