I am doing a project using primefaces.
In my project i need to change the color of var subroutes = (IEnumerable<IHttpRouteData>)routeData.Values["MS_SubRoutes"];
var routeBreakDown= subroutes.First().Route.RouteTemplate.Split('/');
if (name == "namespace")
{
return (T)(object)routeBreakDown[1]; //namespace
}
else if (name == "controller")
{
return (T)(object)routeBreakDown[2]; //controller
}
(primefaces) when i click the <activity
android:name=".Name_of_your_ativity"
android:label="@string/title_activity"
android:windowSoftInputMode="adjustPan" >
</activity>
.
I tried but does not work.
Here, I added my tiny code:
Sample Code:
p:watermark
JQuery
p:commandButton
Any idea?
答案 0 :(得分:-1)
var page = require('webpage').create(),
domain = 'http://www.fagg-afmps.be',
fs = require('fs');
phantom.casperPath = 'C:/casperjs';
phantom.injectJs('C:/casperjs/bin/bootstrap.js');
//working directory
fs.changeWorkingDirectory("C:\Projects\Inactive medicins");
var casper = require('casper').create({
verbose: true,
logLevel: 'debug',//needed for debugging
pageSettings: {
webSecurityEnabled: false,
}
});
casper.userAgent("Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36")
casper.start(domain + '/nl/');
casper.then(function(){
var xlsLink = this.evaluate(function(){
return $('.XLSLink').attr('href');
});
var filename = xlsLink.substring(xlsLink.lastIndexOf('/') + 1);
var linkPath = domain + xlsLink.substring(0,xlsLink.lastIndexOf('/') + 1);
try{
//file information
this.echo('filename: ' + unescape(filename));
this.echo('path: ' + linkPath + unescape(filename));
//Here was the mistake. It just needs the url that it needs
//to download and the path where it needs to store it on the
//computer.
this.download(xlsLink, fs.workingDirectory + "/test.xls");
}catch(e){
this.echo(e);
}
});
casper.run(function() {
this.echo('Done.').exit();
});
Here color represents color of the font. If you need to change background-color use like this.
$("#column li").click(function() {
console.log(this.id);
});
make sure that watermark is having class called $(".ui-watermark").css("color", "red");
,its not there in the code you posted.