আসন্ন সপ্তাহগুলিতে আমরা আমাদের এপিআই এর আপডেট আপডেট করতে যাচ্ছি যা আপনাকে এইচটিএমএল উপাদানগুলি আড়াল করতে দেয়। এটি বিরক্তিকর ইনলাইন মডেল পপআপগুলি লুকানোর জন্য বিশেষত কার্যকর হবে যা কিছু ওয়েবসাইট ব্যবহারকারীদের ক্রিয়া সম্পাদন করতে উত্সাহিত করতে ব্যবহার করে।
So far the changes have been rolled out to the following API's:
To hide HTML elements, just simply specify the id's or class names of all the HTML elements you wish to hide. For instance #myelem, .myclass
. Below is two examples of doing this using both JavaScript and PHP.
GrabzIt("Sign in to view your Application Key").ConvertURL("http://www.google.com", {"hide":"#myelem, .myclass"}).Create();
$grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret"); $options = new GrabzItImageOptions(); $options->setHideElement("#myelem, .myclass"); $grabzIt->URLToImage("http://www.google.com", $options); $grabzIt->SaveTo("test.jpg");
Additionally the target parameter, now accepts class names in addition to identifiers, just specify the standard CSS selector. Just pass one CSS selector to the target parameter so for instance .myclass
or #myid
If there are multiple matching elements the first one will be chosen.